Update integration-test-main.sh as additional change for #300

This commit is contained in:
Takeshi Nakatani 2015-12-03 13:44:43 +00:00
parent 7b2e963636
commit 4bd5ffb0fa

View File

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