From 782358a7621840a2e4a8d6b93e35dbbc279f8433 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 1 Mar 2018 10:54:52 +0100 Subject: [PATCH] testprogs: Return the correct error status code Signed-off-by: Andreas Schneider Reviewed-by: Andrew Bartlet --- testprogs/blackbox/common_test_fns.inc | 3 +++ 1 file changed, 3 insertions(+) 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 } -- 2.34.1