We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 753da37 commit dc7df57Copy full SHA for dc7df57
1 file changed
bash_unit
@@ -254,7 +254,7 @@ run_tests() {
254
local tests_to_run="$(set | "$GREP" -E '^test.* \(\)' | "$GREP" -E "$test_pattern" | "$SED" -e 's: .*::' | maybe_shuffle)"
255
fi
256
257
- test_count=$(cat $TEMPFILE)
+ test_count=$(cat "${TEMPFILE}")
258
for test in $tests_to_run
259
do
260
(
@@ -267,7 +267,7 @@ run_tests() {
267
failure=$(( $? || failure))
268
((test_count++))
269
done
270
- echo "${test_count}" > $TEMPFILE
+ echo "${test_count}" > "${TEMPFILE}"
271
272
return $failure
273
}
@@ -547,7 +547,7 @@ fi
547
548
#run tests received as parameters
549
failure=0
550
-echo 0 > $TEMPFILE
+echo 0 > "${TEMPFILE}"
551
for test_file in "$@"
552
553
notify_suite_starting "$test_file"
0 commit comments