Skip to content

Commit a11489b

Browse files
committed
try 4 processes
1 parent 064e64a commit a11489b

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/job.test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ env:
2626
PIP_DISABLE_PIP_VERSION_CHECK: 1
2727
PYTHONUNBUFFERED: 1
2828

29+
ATEST_PROCESSES: 4
2930
ATEST_RETRIES: 3
3031
JLPM_CMD: jlpm --ignore-optional --prefer-offline --frozen-lockfile
3132

scripts/atest.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def atest(attempt, extra_args):
6565
extra_args += ["--skiponfailure", "AND".join(non_critical)]
6666

6767
if attempt != 1:
68-
previous = OUT / f"{get_stem(attempt - 1, extra_args)}.robot.xml"
68+
previous = OUT / get_stem(attempt - 1, extra_args) / "output.xml"
6969
if previous.exists():
7070
extra_args += ["--rerunfailed", str(previous)]
7171

@@ -83,6 +83,9 @@ def atest(attempt, extra_args):
8383
# don't ever test our examples
8484
"--exclude",
8585
"atest:example",
86+
# random ensures there's not inter-test coupling
87+
"--randomize",
88+
"all",
8689
*(extra_args or []),
8790
ATEST,
8891
]
@@ -102,20 +105,14 @@ def atest(attempt, extra_args):
102105

103106
try:
104107
if "--dryrun" in extra_args or ATEST_PROCESSES == 1:
105-
robot.run_cli(
106-
[
107-
# random ensures there's not inter-test coupling
108-
"--randomize",
109-
"all",
110-
*str_args,
111-
]
112-
)
108+
robot.run_cli(str_args)
113109
else:
114110
pabot.main(
115111
[
116112
*("--processes", f"{ATEST_PROCESSES}"),
117113
*("--artifacts", "png,log"),
118114
"--artifactsinsubfolders",
115+
"--testlevelsplit",
119116
*str_args,
120117
]
121118
)

0 commit comments

Comments
 (0)