Skip to content

Commit 3b28dd9

Browse files
committed
Strip out the mods from variable and add it to the invocation
1 parent 8ad5a6e commit 3b28dd9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build-scripts/gha_test_only.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,12 @@ else
5757
export UBSAN_OPTIONS=print_stacktrace=1
5858
parallel -j "$num_test_jobs" ${parallel_opts} "run_test './tests/cata_test' '('{}')=> ' --user-dir=test_user_dir_{#} {}" ::: "[slow] ~starting_items" "~[slow] ~[.],starting_items"
5959
if [ -n "$MODS" ]
60+
MODLIST=${MODS#--mods=}
6061
then
61-
for MODSET in ${MODS//|/ }; do
62-
parallel -j "$num_test_jobs" ${parallel_opts} "run_test './tests/cata_test' 'Mods-('{}')=> ' $(printf %q "${MODSET}") --user-dir=modded_{#} {}" ::: "[slow] ~starting_items" "~[slow] ~[.],starting_items"
62+
for MODSET in ${MODLIST//|/ }; do
63+
echo "$num_test_jobs" ${parallel_opts} \
64+
"run_test './tests/cata_test' 'Mods-('{}')=> ' --mods=$(printf %q "${MODSET}") --user-dir=modded_{#} {}" \
65+
::: "[slow] ~starting_items" "~[slow] ~[.],starting_items"
6366
done
6467
fi
6568

0 commit comments

Comments
 (0)