Added small logic in test script for test_chown

This commit is contained in:
Takeshi Nakatani 2016-09-11 13:37:53 +00:00
parent f363c21ff5
commit 232befb52a

View File

@ -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