summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/system/410-selinux.bats11
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