From 34a04a2d0c33bb50d8fa88e4ac808dabcb11c69c Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 24 Jan 2022 23:00:18 +0100 Subject: run_tests.sh: fix exitcode evaluation The `touch` command result incorrectly shadowed the testcase exit code. Signed-off-by: Jo-Philipp Wich --- tests/custom/run_tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3