From cd03e4e2f8afdbd2c9d70cb9b9e2ca7db07e826e Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 9 Jan 2013 14:36:13 -0500 Subject: [PATCH] Set permissions on $TESTDIR in acl_reset. Use equal signs to delimit expected/actual output. --- run-tests.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) 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 } -- 2.44.2