More travis ACL / chattr tests

This commit is contained in:
deajan 2016-11-21 10:04:00 +01:00
parent 3304814bcd
commit 25aa245191
1 changed files with 5 additions and 6 deletions

View File

@ -209,11 +209,13 @@ function oneTimeSetUp () {
#TODO: Assuming that macos has the same syntax than bsd here #TODO: Assuming that macos has the same syntax than bsd here
if [ "$LOCAL_OS" == "BSD" ] || [ "$LOCAL_OS" == "MacOSX" ]; then if [ "$LOCAL_OS" == "BSD" ] || [ "$LOCAL_OS" == "MacOSX" ]; then
SUDO_CMD=""
IMMUTABLE_ON_CMD="chflags schg" IMMUTABLE_ON_CMD="chflags schg"
IMMUTABLE_OFF_CMD="chflags noschg" IMMUTABLE_OFF_CMD="chflags noschg"
else else
IMMUTABLE_ON_CMD="chattr +i" IMMUTABLE_ON_CMD="chattr +i"
IMMUTABLE_OFF_CMD="chattr -i" IMMUTABLE_OFF_CMD="chattr -i"
SUDO_CMD="sudo"
fi fi
# Get osync version # Get osync version
@ -227,13 +229,10 @@ function oneTimeSetUp () {
# This will make travis fail because of missing stuff # This will make travis fail because of missing stuff
touch fic touch fic
sudo chattr +i fic $SUDO_CMD chattr +i fic
mount -o remount,acl / $SUDO_CMD setfacl -m o::rwx fic
setfacl -m o::rwx fic
getfacl fic getfacl fic
mkdir test exit
( sleep 20 && touch test/fic ) &
inotifywait test
} }
function oneTimeTearDown () { function oneTimeTearDown () {