Added small logic in test script for test_chown

This commit is contained in:
Takeshi Nakatani 2016-09-11 13:41:50 +00:00
parent 232befb52a
commit ec110bb0f3

View File

@ -208,11 +208,12 @@ function test_chown {
if [ $(stat --format=%u:%g $TEST_TEXT_FILE) == $ORIGINAL_PERMISSIONS ]
then
if [ $ORIGINAL_PERMISSIONS == "1000:1000" ]
then
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
fi
# clean up