git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5857f1
)
testprogs: Return the correct error status code
author
Andreas Schneider
<asn@samba.org>
Thu, 1 Mar 2018 09:54:52 +0000
(10:54 +0100)
committer
Andreas Schneider
<asn@cryptomilk.org>
Fri, 2 Mar 2018 23:01:23 +0000
(
00:01
+0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlet <abartlet@samba.org>
testprogs/blackbox/common_test_fns.inc
patch
|
blob
|
history
diff --git
a/testprogs/blackbox/common_test_fns.inc
b/testprogs/blackbox/common_test_fns.inc
index 8d755a4884726059fd25063347ddd56d9dc90e63..a5611c63fa044336d74985ded4d63111706ae5e5 100755
(executable)
--- 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
}