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
if [ "$LOCAL_OS" == "BSD" ] || [ "$LOCAL_OS" == "MacOSX" ]; then
SUDO_CMD=""
IMMUTABLE_ON_CMD="chflags schg"
IMMUTABLE_OFF_CMD="chflags noschg"
else
IMMUTABLE_ON_CMD="chattr +i"
IMMUTABLE_OFF_CMD="chattr -i"
SUDO_CMD="sudo"
fi
# Get osync version
@ -227,13 +229,10 @@ function oneTimeSetUp () {
# This will make travis fail because of missing stuff
touch fic
sudo chattr +i fic
mount -o remount,acl /
setfacl -m o::rwx fic
$SUDO_CMD chattr +i fic
$SUDO_CMD setfacl -m o::rwx fic
getfacl fic
mkdir test
( sleep 20 && touch test/fic ) &
inotifywait test
exit
}
function oneTimeTearDown () {