Disabled all debugfs related tests on BSD / Mac / Travis
This commit is contained in:
parent
6c7678a49a
commit
eb9b34c22d
|
@ -1,8 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# If stopped while running, config file values might be wrong
|
## If this script is stopped while running, config file values and IS_STABLE value might be in inconsistent state
|
||||||
|
|
||||||
# osync test suite 2016112103
|
## On Mac OSX, this needs to be run as root in order to use sudo without password
|
||||||
|
## From current terminal run sudo -s in order to get a new terminal as root
|
||||||
|
|
||||||
|
# osync test suite 2016112105
|
||||||
|
|
||||||
# 4 tests:
|
# 4 tests:
|
||||||
# quicklocal
|
# quicklocal
|
||||||
|
@ -508,10 +511,10 @@ function test_softdeletion_cleanup () {
|
||||||
|
|
||||||
touch "$file.new"
|
touch "$file.new"
|
||||||
|
|
||||||
if [ "$TRAVIS_RUN" != true ]; then
|
if [ "$TRAVIS_RUN" != true ] || [ "$LOCAL_OS" == "BSD" ] || [ "$LOCAL_OS" == "MacOSX" ]; then
|
||||||
CreateOldFile "$file.old"
|
CreateOldFile "$file.old"
|
||||||
else
|
else
|
||||||
echo "Skipping changing ctime on file because travis does not support debugfs"
|
echo "Skipping changing ctime on file because travis / bsd / macos does not support debugfs"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -523,7 +526,7 @@ function test_softdeletion_cleanup () {
|
||||||
[ -f "$file.new" ]
|
[ -f "$file.new" ]
|
||||||
assertEquals "New softdeleted / backed up file [$file.new] exists." "0" $?
|
assertEquals "New softdeleted / backed up file [$file.new] exists." "0" $?
|
||||||
|
|
||||||
if [ "$TRAVIS_RUN" != true ]; then
|
if [ "$TRAVIS_RUN" != true ] || [ "$LOCAL_OS" == "BSD" ] || [ "$LOCAL_OS" == "MacOSX" ]; then
|
||||||
[ ! -f "$file.old" ]
|
[ ! -f "$file.old" ]
|
||||||
assertEquals "Old softdeleted / backed up file [$file.old] is deleted permanently." "1" $?
|
assertEquals "Old softdeleted / backed up file [$file.old] is deleted permanently." "1" $?
|
||||||
else
|
else
|
||||||
|
@ -542,6 +545,11 @@ function test_FileAttributePropagation () {
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$LOCAL_OS" == "MacOSX" ]; then
|
||||||
|
echo "Skipping FileAttributePropagation tests because Mac OSX does not support ACL."
|
||||||
|
return 0
|
||||||
|
fi
|
||||||
|
|
||||||
for i in "${osyncParameters[@]}"; do
|
for i in "${osyncParameters[@]}"; do
|
||||||
cd "$OSYNC_DIR"
|
cd "$OSYNC_DIR"
|
||||||
PrepareLocalDirs
|
PrepareLocalDirs
|
||||||
|
|
Loading…
Reference in New Issue