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:
Alejandro Andreu 2016-06-09 16:18:03 +02:00
parent 0b4c96d82f
commit b0dfc1c5e6

View File

@ -97,7 +97,7 @@ elif is_fedora; then
$SUDO service auditd start
# SElinux in permissive mode so later we can catch alerts
$SUDO setenforce 0
$SUDO selinuxenabled && $SUDO setenforce 0
fi
PUPPET_ARGS="${PUPPET_ARGS} --detailed-exitcodes --color=false --test --trace"