diff options
author | Andreas Schneider <asn@samba.org> | 2018-03-01 10:54:52 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2018-03-03 00:01:23 +0100 |
commit | 782358a7621840a2e4a8d6b93e35dbbc279f8433 (patch) | |
tree | 77042f594e4de5f83c717e7f0df2a5b342296f5d /testprogs | |
parent | c5857f10020db35fee051485b96dfc7d579e7ed5 (diff) | |
download | samba-782358a7621840a2e4a8d6b93e35dbbc279f8433.tar.gz |
testprogs: Return the correct error status code
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
Diffstat (limited to 'testprogs')
-rwxr-xr-x | testprogs/blackbox/common_test_fns.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/testprogs/blackbox/common_test_fns.inc b/testprogs/blackbox/common_test_fns.inc index 8d755a48847..a5611c63fa0 100755 --- a/testprogs/blackbox/common_test_fns.inc +++ b/testprogs/blackbox/common_test_fns.inc @@ -99,8 +99,11 @@ kerberos_kinit() { kpassfile=$(mktemp) echo $password > ${kpassfile} $kinit_tool --password-file=${kpassfile} $principal $@ + status=$? rm -f ${kpassfile} else echo $password | $kinit_tool $principal $@ + status=$? fi + return $status } |