diff options
| author | Sebastian Holmin <sebastian.holmin@mullvad.net> | 2024-08-15 13:10:58 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2024-08-15 16:33:32 +0200 |
| commit | 65b0b4853c9dc635aee84dfc08755a1dde981486 (patch) | |
| tree | 19c62571b8b9d16b68d3ee0e0ab240ee094b2256 /test/scripts | |
| parent | 8ebfca1b82654b1c7b44abb21844f033f6505730 (diff) | |
| download | mullvadvpn-65b0b4853c9dc635aee84dfc08755a1dde981486.tar.xz mullvadvpn-65b0b4853c9dc635aee84dfc08755a1dde981486.zip | |
Fix word splitting of `TEST_FILTERS` env var
Diffstat (limited to 'test/scripts')
| -rwxr-xr-x | test/scripts/test-utils.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/scripts/test-utils.sh b/test/scripts/test-utils.sh index a51f0c3043..75ad548701 100755 --- a/test/scripts/test-utils.sh +++ b/test/scripts/test-utils.sh @@ -254,6 +254,7 @@ function run_tests_for_os { package_dir=$(get_package_dir) local test_dir test_dir=$(get_test_utls_dir)/.. + read -ra test_filters_arg <<<"${TEST_FILTERS:-}" # Split the string by words into an array pushd "$test_dir" if ! RUST_LOG_STYLE=always cargo run --bin test-manager \ run-tests \ @@ -263,7 +264,7 @@ function run_tests_for_os { "${test_report_arg[@]}" \ --package-dir "${package_dir}" \ --vm "$vm" \ - "${TEST_FILTERS:-}" \ + "${test_filters_arg[@]}" \ 2>&1 | sed -r "s/${ACCOUNT_TOKEN}/\{ACCOUNT_TOKEN\}/g"; then echo "Test run failed" exit 1 |
