Skip to content

Commit 0c3ca2c

Browse files
pb8oJonathanWoollett-Light
authored andcommitted
fix(ci): only quote tests when running in AB mode
Otherwise pytest thinks we are asking for a test with a space in it. ERROR: file or directory not found: integration_tests/performance/test_memory_overhead.py integration_tests/performance/test_boottime.py::test_boottime Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent df112e3 commit 0c3ca2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.buildkite/pipeline_perf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"memory-overhead": {
5050
"label": "💾 Memory Overhead and 👢 Boottime",
51-
"test_path": "'integration_tests/performance/test_memory_overhead.py integration_tests/performance/test_boottime.py::test_boottime'",
51+
"test_path": "integration_tests/performance/test_memory_overhead.py integration_tests/performance/test_boottime.py::test_boottime",
5252
"devtool_opts": "-c 1-10 -m 0",
5353
},
5454
}
@@ -71,7 +71,7 @@ def build_group(test):
7171
pytest_opts = ""
7272
if REVISION_A:
7373
devtool_opts += " --ab"
74-
pytest_opts = f" {ab_opts} run {REVISION_A} {REVISION_B} --test {test_path}"
74+
pytest_opts = f" {ab_opts} run {REVISION_A} {REVISION_B} --test '{test_path}'"
7575
else:
7676
# Passing `-m ''` below instructs pytest to collect tests regardless of their markers (e.g. it will collect both tests marked as nonci, and tests without any markers).
7777
pytest_opts += f" -m '' {test_path}"

0 commit comments

Comments
 (0)