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"
Reference in New Issue
openstack/puppet-openstack-integration
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.

The note is not visible to the blocked user.