Skip to content

Commit cda6633

Browse files
committed
fix(test): use Bash 3.0 compatible pattern in parallel_test.sh
Replace process substitution with command substitution and positional parameters.
1 parent a335e31 commit cda6633

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/unit/parallel_test.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,11 +207,14 @@ function test_aggregate_sums_multiple_result_files() {
207207
_create_result_file "$TEMP_DIR_PARALLEL_TEST_SUITE/script1" "test2.result" \
208208
"##ASSERTIONS_PASSED=3##ASSERTIONS_FAILED=2##TEST_EXIT_CODE=0##"
209209

210-
local passed failed
211-
read -r passed failed < <(
210+
local result passed failed
211+
result=$(
212212
bashunit::parallel::aggregate_test_results "$TEMP_DIR_PARALLEL_TEST_SUITE" >/dev/null
213213
echo "$_BASHUNIT_ASSERTIONS_PASSED $_BASHUNIT_ASSERTIONS_FAILED"
214214
)
215+
IFS=' ' read -r passed failed <<EOF
216+
$result
217+
EOF
215218

216219
assert_same "8" "$passed"
217220
assert_same "3" "$failed"

0 commit comments

Comments
 (0)