Skip to content

Commit

Permalink
In storage tests, always test EXT first if present
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
stormi authored and benjamreis committed Jan 19, 2024
1 parent bbeb7cb commit 327dd82
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/storage/conftest.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 327dd82

Please sign in to comment.