diff options
author | Ed Santiago <santiago@redhat.com> | 2020-10-05 10:27:18 -0600 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2020-10-07 10:43:02 -0600 |
commit | 0ab9e39064e5906b80a69d51fab3757ad43f32c5 (patch) | |
tree | 9f1049eca9db1be36e486128f59bfae41d4b627b /test/system/helpers.bash | |
parent | a7500e54a4646c7db477349e2530ac13df77b8fa (diff) | |
download | podman-0ab9e39064e5906b80a69d51fab3757ad43f32c5.tar.gz podman-0ab9e39064e5906b80a69d51fab3757ad43f32c5.tar.bz2 podman-0ab9e39064e5906b80a69d51fab3757ad43f32c5.zip |
system tests: cleanup, and add more tests
- images test: add test for 'table' and '\t' formatting
- image mount test: check output from 'umount', test
repeat umount (NOP), and test invalid-umount
- kill test: remove kludgy workaround for crun signal bug
ref: #5004 -- code is no longer needed (fingers crossed),
and the workaround involved pulling an expensive image.
- selinux test: add new tests for shared context in:
* pods , w/ and w/o infra container (ref: #7902)
* containers with namespace sharing: --ipc, --pid, --net
- selinux test: new test for --pid=host (disabled pending
propagation of container-selinux-2.146, ref: #7939)
Signed-off-by: Ed Santiago <santiago@redhat.com>
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 ######### |