diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-01-24 23:00:18 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-01-26 10:47:56 +0100 |
commit | 34a04a2d0c33bb50d8fa88e4ac808dabcb11c69c (patch) | |
tree | 60fe5da4a5d026c794d1b5bb2607cd52c867cd05 | |
parent | 134f575064c8a454354aead852533104642d2d5a (diff) |
run_tests.sh: fix exitcode evaluation
The `touch` command result incorrectly shadowed the testcase exit code.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
-rwxr-xr-x | tests/custom/run_tests.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/custom/run_tests.sh b/tests/custom/run_tests.sh index 6869776..c384973 100755 --- a/tests/custom/run_tests.sh +++ b/tests/custom/run_tests.sh @@ -69,8 +69,8 @@ run_testcase() { $ucode_bin $args -e '{ "REQUIRE_SEARCH_PATH": [ "'"$ucode_lib"'/*.so" ] }' -i - <"$in" >"$dir/res.out" 2>"$dir/res.err" ) - touch "$dir/empty" printf "%d\n" $? > "$dir/res.code" + touch "$dir/empty" if ! cmp -s "$dir/res.err" "${err:-$dir/empty}"; then [ $fail = 0 ] && printf "!\n" |