Skip to content

Commit 73af2df

Browse files
[integ-tests] Let serial_execution_by_instance to take effect on all p-series instances
Fixture serial_execution_by_instance can be optional used with each test. If the fixture is not used, the test could still run p-series instances in parallel. This commit fixes a "bug" that some p-series instances serial execution is not enforced even when serial_execution_by_instance is used in the test
1 parent 9d60526 commit 73af2df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integration-tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ def s3_bucket_key_prefix():
11691169
@pytest.fixture(scope="class")
11701170
def serial_execution_by_instance(request, instance, region):
11711171
"""Enforce serial execution of tests, according to the adopted instance."""
1172-
if instance in ["c5n.18xlarge", "p4d.24xlarge"]:
1172+
if instance in ["c5n.18xlarge"] or instance.startswith("p"):
11731173
logging.info("Enforcing serial execution for instance %s", instance)
11741174
outdir = request.config.getoption("output_dir")
11751175
lock_file = f"{outdir}/{instance}{region}.lock"

0 commit comments

Comments
 (0)