From: Andreas Schneider Date: Thu, 1 Mar 2018 09:54:52 +0000 (+0100) Subject: testprogs: Return the correct error status code X-Git-Tag: talloc-2.1.12~278 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=782358a7621840a2e4a8d6b93e35dbbc279f8433;p=thirdparty%2Fsamba.git testprogs: Return the correct error status code Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlet --- 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 }