From 327dd829599d9816a91b4189bd31c62277ed1640 Mon Sep 17 00:00:00 2001 From: Samuel Verschelde Date: Fri, 19 Jan 2024 15:39:03 +0100 Subject: [PATCH] In storage tests, always test EXT first if present We want to start the jobs with a simple SR type storage driver. Better fail early, with a test without any complex teardown, if something is seriously broken. Signed-off-by: Samuel Verschelde --- tests/storage/conftest.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/storage/conftest.py diff --git a/tests/storage/conftest.py b/tests/storage/conftest.py new file mode 100644 index 000000000..b62b97cdb --- /dev/null +++ b/tests/storage/conftest.py @@ -0,0 +1,7 @@ +def pytest_collection_modifyitems(config, items): + # modify ordering so that ext is always tested first, + # before more complex storage drivers + for item in reversed(list(items)): + if "_ext_" in item.path.name: + items.remove(item) + items.insert(0, item)