[Tests] Run diffusion tiny model tests in parallel (#6339)
Signed-off-by: Nick Cao <ncao@redhat.com>
This commit is contained in:
1 parent
c6e38860e9
commit
ebb4abde0a
7 files changed
+68
-28
No files matched your search
@@ -0,0 +1,14 @@
|
||||
"""
|
||||
Only tests explicitly marked ``pytest.mark.xdist`` run concurrently.
|
||||
Other test are pinned to a single xdist worker.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
def pytest_collection_modifyitems(config, items):
|
||||
if not config.pluginmanager.hasplugin("xdist"):
|
||||
return
|
||||
for item in items:
|
||||
if not item.get_closest_marker("xdist"):
|
||||
item.add_marker(pytest.mark.xdist_group(name="serial"))
|
||||
Reference in new issue
Block a user