From: Philippe Proulx Date: Tue, 17 Oct 2017 19:25:25 +0000 (-0400) Subject: tests/common.bash: use $status, not $?, when using `run` X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=6092c847e67543acdc5cf0a4d5abf1290f366768;p=deliverable%2Fbarectf.git tests/common.bash: use $status, not $?, when using `run` Signed-off-by: Philippe Proulx --- diff --git a/tests/common.bash b/tests/common.bash index f1424b4..3ea8998 100644 --- a/tests/common.bash +++ b/tests/common.bash @@ -28,8 +28,12 @@ barectf_assert_file_exists() { return 1 fi + if ! which barectf > /dev/null; then + echo "FATAL: cannot find barectf tool" 1>&2 + return 1 + fi + run barectf "$1" - local rc=$? popd - return $rc + return $status }