diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-10-12 06:13:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-12 06:13:14 -0400 |
commit | 04674298bdbcee0c5c9f3ea6a22fa454fd923141 (patch) | |
tree | feb8dea77ff00501c9d959480cbe73a349da93b5 /test/system/helpers.bash | |
parent | 7876dd51134c946d48f29f98d52dede685656194 (diff) | |
parent | 0ab9e39064e5906b80a69d51fab3757ad43f32c5 (diff) | |
download | podman-04674298bdbcee0c5c9f3ea6a22fa454fd923141.tar.gz podman-04674298bdbcee0c5c9f3ea6a22fa454fd923141.tar.bz2 podman-04674298bdbcee0c5c9f3ea6a22fa454fd923141.zip |
Merge pull request #7949 from edsantiago/bats
system tests: cleanup, and add more tests
Diffstat (limited to 'test/system/helpers.bash')
-rw-r--r-- | test/system/helpers.bash | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/system/helpers.bash b/test/system/helpers.bash index 998db5283..c6c2c12df 100644 --- a/test/system/helpers.bash +++ b/test/system/helpers.bash @@ -286,6 +286,17 @@ function skip_if_remote() { fi } +######################## +# skip_if_no_selinux # +######################## +function skip_if_no_selinux() { + if [ ! -e /usr/sbin/selinuxenabled ]; then + skip "selinux not available" + elif ! /usr/sbin/selinuxenabled; then + skip "selinux disabled" + fi +} + ######### # die # Abort with helpful message ######### |