From f407b3ec0d86fef43e48da27b33007347e7256f9 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Tue, 11 Apr 2023 14:38:30 +1200 Subject: testprogs: Return correct status code Signed-off-by: Joseph Sutton Reviewed-by: Andreas Schneider --- testprogs/blackbox/subunit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testprogs/blackbox/subunit.sh b/testprogs/blackbox/subunit.sh index b6b90fcabfe..1ef32f6c490 100755 --- a/testprogs/blackbox/subunit.sh +++ b/testprogs/blackbox/subunit.sh @@ -118,7 +118,7 @@ testit_grep() else printf 'GREP: "%s" not found in output:\n%s' "$grep" "$output" | subunit_fail_test "$name" fi - return $status + return $gstatus } # This returns 0 if the command gave success and the grep value was found -- cgit v1.2.1