setenforce will not return 1 on run_tests.sh
checking selinuxenabled exit code before will ensure that the script does not exit prematurely, since the bash -e flag is set Change-Id: Id4f0831612f69f448e627453352bd88ce089da2f
This commit is contained in:
parent
0b4c96d82f
commit
b0dfc1c5e6
@ -97,7 +97,7 @@ elif is_fedora; then
|
|||||||
$SUDO service auditd start
|
$SUDO service auditd start
|
||||||
|
|
||||||
# SElinux in permissive mode so later we can catch alerts
|
# SElinux in permissive mode so later we can catch alerts
|
||||||
$SUDO setenforce 0
|
$SUDO selinuxenabled && $SUDO setenforce 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PUPPET_ARGS="${PUPPET_ARGS} --detailed-exitcodes --color=false --test --trace"
|
PUPPET_ARGS="${PUPPET_ARGS} --detailed-exitcodes --color=false --test --trace"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user