Skip to content

Commit f9f1862

Browse files
committed
Tests are run once for each mod set
1 parent 6caac0d commit f9f1862

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
pch: 1
108108
archive-success: basic-build
109109
dont_skip_data_only_changes: 1
110-
mods: --mods=magiclysm
110+
mods: --mods=magiclysm|xedra_evolved
111111
title: Basic Build and Test (Clang oldest supported, Ubuntu, Curses)
112112
ccache_limit: 4.5G
113113
ccache_key: linux-llvm-13

build-scripts/gha_test_only.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,11 @@ 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-
parallel -j "$num_test_jobs" ${parallel_opts} "run_test './tests/cata_test' 'Mods-('{}')=> ' $(printf %q "${MODS}") --user-dir=modded_{#} {}" ::: "[slow] ~starting_items" "~[slow] ~[.],starting_items"
62+
for MODSET in ${MODLIST//|/ }; do
63+
parallel -j "$num_test_jobs" ${parallel_opts} "run_test './tests/cata_test' 'Mods-('{}')=> ' --mods=$(printf %q "${MODSET}") --user-dir=modded_{#} {}" ::: "[slow] ~starting_items" "~[slow] ~[.],starting_items"
64+
done
6265
fi
6366

6467
if [ -n "$TEST_STAGE" ]

0 commit comments

Comments
 (0)