From: Michael Orlitzky Date: Wed, 9 Jan 2013 19:36:13 +0000 (-0500) Subject: Set permissions on $TESTDIR in acl_reset. X-Git-Tag: v0.0.4~14 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=cd03e4e2f8afdbd2c9d70cb9b9e2ca7db07e826e;p=apply-default-acl.git Set permissions on $TESTDIR in acl_reset. Use equal signs to delimit expected/actual output. --- diff --git a/run-tests.sh b/run-tests.sh index 31c9f30..68ae769 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -8,7 +8,8 @@ TESTDIR=test acl_reset() { # Remove any ACLs on our test directory and remove its contents. - setfacl --remove-all --recursive "$TESTDIR" + setfacl --remove-all --recursive "${TESTDIR}" + chmod 755 "${TESTDIR}" rm -rf "${TESTDIR}"/* } @@ -18,10 +19,14 @@ compare() { acl_reset else echo "Failure (#${TESTNUM})" - echo "Expected result:" + echo 'Expected result:' + echo '================' echo "${EXPECTED}" - echo "Actual result:" + echo '================' + echo 'Actual result:' + echo '================' echo "${ACTUAL}" + echo '================' exit 1 fi }