From 232befb52a2cbca476f04839e7287fde765cf385 Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Sun, 11 Sep 2016 13:37:53 +0000 Subject: [PATCH] Added small logic in test script for test_chown --- test/integration-test-main.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/integration-test-main.sh b/test/integration-test-main.sh index 1e4e6ad..f74e1e6 100755 --- a/test/integration-test-main.sh +++ b/test/integration-test-main.sh @@ -207,8 +207,12 @@ function test_chown { # if they're the same, we have a problem. if [ $(stat --format=%u:%g $TEST_TEXT_FILE) == $ORIGINAL_PERMISSIONS ] then - echo "Could not modify $TEST_TEXT_FILE ownership($ORIGINAL_PERMISSIONS to 1000:1000)" - return 1 + if [ $ORIGINAL_PERMISSIONS == "1000:1000" ] + echo "Could not be strict check because original file permission 1000:1000" + else + echo "Could not modify $TEST_TEXT_FILE ownership($ORIGINAL_PERMISSIONS to 1000:1000)" + return 1 + then fi # clean up