From: Joseph Sutton Date: Tue, 11 Apr 2023 02:38:30 +0000 (+1200) Subject: testprogs: Return correct status code X-Git-Tag: talloc-2.4.1~929 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f407b3ec0d86fef43e48da27b33007347e7256f9;p=thirdparty%2Fsamba.git testprogs: Return correct status code Signed-off-by: Joseph Sutton Reviewed-by: Andreas Schneider --- 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