From: Andreas Schneider Date: Fri, 22 Apr 2022 13:34:11 +0000 (+0200) Subject: s3:tests: Reformat test_valid_users.sh X-Git-Tag: tevent-0.13.0~359 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a83032981971624ccb06b9eeadbf0d0b2d9ef1e2;p=thirdparty%2Fsamba.git s3:tests: Reformat test_valid_users.sh shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- diff --git a/source3/script/tests/test_valid_users.sh b/source3/script/tests/test_valid_users.sh index a7f9333b243..659eb6abaa2 100755 --- a/source3/script/tests/test_valid_users.sh +++ b/source3/script/tests/test_valid_users.sh @@ -4,10 +4,10 @@ # if [ $# -lt 7 ]; then -cat < $tmpfile <$tmpfile </dev/null 2>&1 + echo "$out" | grep "$prompt" >/dev/null 2>&1 - ret=$? - if [ $ret = 0 ] ; then - # got the correct prompt .. succeed - true - else - echo "$out" - echo "failed listing share with valid users" - false - fi + ret=$? + if [ $ret = 0 ]; then + # got the correct prompt .. succeed + true + else + echo "$out" + echo "failed listing share with valid users" + false + fi } testit "accessing a valid users share succeeds" \ - test_valid_users_access valid-users-access || \ - failed=`expr $failed + 1` + test_valid_users_access valid-users-access || + failed=$(expr $failed + 1) exit $failed