Skip to content

Commit f7bb4e9

Browse files
committed
fix: parallel_run should fail when e2e tests fail
1 parent cb79b4b commit f7bb4e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

parallel_run_e2e.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
""" Calculate how many parallel workers are needed to complete E2E infrastructure jobs across available CPU Cores """
22
import subprocess
3+
import sys
34
from pathlib import Path
45

56

@@ -8,7 +9,8 @@ def main():
89
workers = len(list(features)) - 1
910

1011
command = f"poetry run pytest -n {workers} --dist loadfile -o log_cli=true tests/e2e"
11-
subprocess.run(command.split(), shell=False)
12+
result = subprocess.run(command.split(), shell=False)
13+
sys.exit(result.returncode)
1214

1315

1416
if __name__ == "__main__":

0 commit comments

Comments
 (0)