Skip to content

Commit 65b0b48

Browse files
Serock3dlon
authored andcommitted
Fix word splitting of TEST_FILTERS env var
1 parent 8ebfca1 commit 65b0b48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/scripts/test-utils.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ function run_tests_for_os {
254254
package_dir=$(get_package_dir)
255255
local test_dir
256256
test_dir=$(get_test_utls_dir)/..
257+
read -ra test_filters_arg <<<"${TEST_FILTERS:-}" # Split the string by words into an array
257258
pushd "$test_dir"
258259
if ! RUST_LOG_STYLE=always cargo run --bin test-manager \
259260
run-tests \
@@ -263,7 +264,7 @@ function run_tests_for_os {
263264
"${test_report_arg[@]}" \
264265
--package-dir "${package_dir}" \
265266
--vm "$vm" \
266-
"${TEST_FILTERS:-}" \
267+
"${test_filters_arg[@]}" \
267268
2>&1 | sed -r "s/${ACCOUNT_TOKEN}/\{ACCOUNT_TOKEN\}/g"; then
268269
echo "Test run failed"
269270
exit 1

0 commit comments

Comments
 (0)