From 6092c847e67543acdc5cf0a4d5abf1290f366768 Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Tue, 17 Oct 2017 15:25:25 -0400 Subject: [PATCH] tests/common.bash: use $status, not $?, when using `run` Signed-off-by: Philippe Proulx --- tests/common.bash | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 } -- 2.34.1