File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 20
20
default : ' '
21
21
required : false
22
22
type : string
23
+ tests :
24
+ description : " Tests to run (defaults to all if empty)"
25
+ default : ' '
26
+ required : false
27
+ type : string
23
28
jobs :
24
29
prepare-matrices :
25
30
name : Prepare virtual machines
@@ -151,6 +156,7 @@ jobs:
151
156
shell : bash -ieo pipefail {0}
152
157
run : |
153
158
git fetch --tags --force
159
+ export TEST_FILTERS="${{ github.event.inputs.tests }}"
154
160
./test/scripts/ci-runtests.sh ${{ matrix.os }}
155
161
- uses : actions/upload-artifact@v3
156
162
if : ' !cancelled()'
@@ -226,6 +232,7 @@ jobs:
226
232
shell : bash -ieo pipefail {0}
227
233
run : |
228
234
git fetch --tags --force
235
+ export TEST_FILTERS="${{ github.event.inputs.tests }}"
229
236
./test/scripts/ci-runtests.sh ${{ matrix.os }}
230
237
- uses : actions/upload-artifact@v3
231
238
if : ' !cancelled()'
@@ -297,6 +304,7 @@ jobs:
297
304
shell : bash -ieo pipefail {0}
298
305
run : |
299
306
git fetch --tags --force
307
+ export TEST_FILTERS="${{ github.event.inputs.tests }}"
300
308
./test/scripts/ci-runtests.sh ${{ matrix.os }}
301
309
- uses : actions/upload-artifact@v3
302
310
if : ' !cancelled()'
Original file line number Diff line number Diff line change @@ -254,6 +254,7 @@ function run_tests_for_os {
254
254
package_dir=$( get_package_dir)
255
255
local test_dir
256
256
test_dir=$( get_test_utls_dir) /..
257
+ read -ra test_filters_arg <<< " ${TEST_FILTERS:-}" # Split the string by words into an array
257
258
pushd " $test_dir "
258
259
if ! RUST_LOG_STYLE=always cargo run --bin test-manager \
259
260
run-tests \
@@ -263,7 +264,7 @@ function run_tests_for_os {
263
264
" ${test_report_arg[@]} " \
264
265
--package-dir " ${package_dir} " \
265
266
--vm " $vm " \
266
- " ${TEST_FILTERS :- } " \
267
+ " ${test_filters_arg[@] } " \
267
268
2>&1 | sed -r " s/${ACCOUNT_TOKEN} /\{ACCOUNT_TOKEN\}/g" ; then
268
269
echo " Test run failed"
269
270
exit 1
You can’t perform that action at this time.
0 commit comments