summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-03-01 10:54:52 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-03-03 00:01:23 +0100
commit782358a7621840a2e4a8d6b93e35dbbc279f8433 (patch)
tree77042f594e4de5f83c717e7f0df2a5b342296f5d /testprogs
parentc5857f10020db35fee051485b96dfc7d579e7ed5 (diff)
downloadsamba-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-xtestprogs/blackbox/common_test_fns.inc3
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
}