testprogs: Return correct status code
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 11 Apr 2023 02:38:30 +0000 (14:38 +1200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 12 Apr 2023 13:52:32 +0000 (13:52 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
testprogs/blackbox/subunit.sh

index b6b90fcabfe376adae8370680096385041d95aee..1ef32f6c490cbbc533ceabdeaeb0998ee65e7313 100755 (executable)
@@ -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