diff options
author | Simon Glass <sjg@chromium.org> | 2025-04-29 07:22:24 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2025-05-27 10:07:41 +0100 |
commit | 45f4f6219182927c34d2dc0359f4bf044d3ed432 (patch) | |
tree | 7d4eeda8054b02711996ec04b58a2670a5b41319 /tools/patman/func_test.py | |
parent | 39f258494fd035cc7b96d904adc70a91f0bb7a7a (diff) |
patman: Switch over to asyncio
Now that all the pieces are in place, switch over from using an executor
to using asyncio.
While we are here, import defaultdict to avoid needing to specify its
module.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/func_test.py')
-rw-r--r-- | tools/patman/func_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/patman/func_test.py b/tools/patman/func_test.py index 47fbbe0cc3f..eee20b9b155 100644 --- a/tools/patman/func_test.py +++ b/tools/patman/func_test.py @@ -789,7 +789,7 @@ diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c """Test Patchwork patches not matching the series""" pwork = patchwork.Patchwork.for_testing(self._fake_patchwork) with terminal.capture() as (_, err): - patches = status.collect_patches(1234, pwork) + patches = asyncio.run(status.check_status(1234, pwork)) status.check_patch_count(0, len(patches)) self.assertIn('Warning: Patchwork reports 1 patches, series has 0', err.getvalue()) @@ -797,7 +797,7 @@ diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c def test_status_read_patch(self): """Test handling a single patch in Patchwork""" pwork = patchwork.Patchwork.for_testing(self._fake_patchwork) - patches = status.collect_patches(1234, pwork) + patches = asyncio.run(status.check_status(1234, pwork)) self.assertEqual(1, len(patches)) patch = patches[0] self.assertEqual('1', patch.id) |