From 4bd5ffb0faeb145ff25cbca9b2fcdc7a0c33933f Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Thu, 3 Dec 2015 13:44:43 +0000 Subject: [PATCH] Update integration-test-main.sh as additional change for #300 --- test/integration-test-main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration-test-main.sh b/test/integration-test-main.sh index f63aa8c..b62d30a 100755 --- a/test/integration-test-main.sh +++ b/test/integration-test-main.sh @@ -245,7 +245,7 @@ function test_chown { chown 1000:1000 $TEST_TEXT_FILE; # if they're the same, we have a problem. - if [ $(stat --format=%a $TEST_TEXT_FILE) == $ORIGINAL_PERMISSIONS ] + if [ $(stat --format=%u:%g $TEST_TEXT_FILE) == $ORIGINAL_PERMISSIONS ] then echo "Could not modify $TEST_TEXT_FILE ownership" exit 1 @@ -382,7 +382,7 @@ function test_mtime_file { echo "Testing mtime preservation function ..." # if the rename file exists, delete it - if [ -e $ALT_TEST_TEXT_FILE ] + if [ -e $ALT_TEST_TEXT_FILE -o -L $ALT_TEST_TEXT_FILE ] then rm $ALT_TEST_TEXT_FILE fi