diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-03-05 14:49:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 14:49:25 -0500 |
commit | 2a7815726c74765ac5b097ba986b61687a63f77e (patch) | |
tree | 1ea507565db2592933f9c406570eca24ceff3667 /test | |
parent | f3b75ebea05edb9abf1f20c638054c552f9237ed (diff) | |
parent | 793c52dd563a14d9636871bc8566f3b2191acf17 (diff) | |
download | podman-2a7815726c74765ac5b097ba986b61687a63f77e.tar.gz podman-2a7815726c74765ac5b097ba986b61687a63f77e.tar.bz2 podman-2a7815726c74765ac5b097ba986b61687a63f77e.zip |
Merge pull request #9599 from rhatdan/selinux
Add tests for selinux kvm/init labels
Diffstat (limited to 'test')
-rw-r--r-- | test/system/410-selinux.bats | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/system/410-selinux.bats b/test/system/410-selinux.bats index 215b2832e..49743ff33 100644 --- a/test/system/410-selinux.bats +++ b/test/system/410-selinux.bats @@ -77,13 +77,14 @@ function check_label() { @test "podman selinux: inspect kvm labels" { skip_if_no_selinux skip_if_remote "runtime flag is not passed over remote" - if [ ! -e /usr/bin/kata-runtime ]; then - skip "kata-runtime not available" - fi - run_podman create --runtime=kata --name myc $IMAGE + tmpdir=$PODMAN_TMPDIR/kata-test + mkdir -p $tmpdir + KATA=${tmpdir}/kata-runtime + ln -s /bin/true ${KATA} + run_podman create --runtime=${KATA} --name myc $IMAGE run_podman inspect --format='{{ .ProcessLabel }}' myc - is "$output" ".*container_kvm_t.*" + is "$output" ".*container_kvm_t" } # pr #6752 |