testprogs: Return correct status code
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 11 Apr 2023 02:24:55 +0000 (14:24 +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/common_test_fns.inc

index 4f5a861754e96f6cfedc5b604ae6affef914726b..ca7ed25b4a2b13388c70b0ed46430ba23a732707 100755 (executable)
@@ -64,7 +64,7 @@ test_rpcclient_grep()
        else
                printf '%s' "$output" | subunit_fail_test "$name"
        fi
-       return $status
+       return $gstatus
 }
 
 test_rpcclient_expect_failure_grep()