summaryrefslogtreecommitdiff
path: root/test/system/700-play.bats
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-10-01 03:36:11 -0400
committerGitHub <noreply@github.com>2021-10-01 03:36:11 -0400
commit317e20a8d5a39088ea112f8321630aacfe27ddbc (patch)
tree934f83cc105ca3f619d07f7b41384c3d4c31a534 /test/system/700-play.bats
parentf96c281f53cff68ac0715dac5da0f53eefa95b8b (diff)
parentbf94ebf423931f6cd848126372fe558c8b956dcc (diff)
downloadpodman-317e20a8d5a39088ea112f8321630aacfe27ddbc.tar.gz
podman-317e20a8d5a39088ea112f8321630aacfe27ddbc.tar.bz2
podman-317e20a8d5a39088ea112f8321630aacfe27ddbc.zip
Merge pull request #11776 from edsantiago/bats_is_cleanup
System tests: tighten 'is' operator
Diffstat (limited to 'test/system/700-play.bats')
-rw-r--r--test/system/700-play.bats8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/system/700-play.bats b/test/system/700-play.bats
index 0785bffdf..f41c50e4c 100644
--- a/test/system/700-play.bats
+++ b/test/system/700-play.bats
@@ -30,7 +30,7 @@ spec:
containers:
- command:
- sleep
- - "100"
+ - \"100\"
env:
- name: PATH
value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
@@ -49,7 +49,7 @@ spec:
capabilities: {}
privileged: false
seLinuxOptions:
- level: "s0:c1,c2"
+ level: \"s0:c1,c2\"
readOnlyRootFilesystem: false
volumeMounts:
- mountPath: /testdir:z
@@ -73,7 +73,7 @@ RELABEL="system_u:object_r:container_file_t:s0"
run_podman play kube - < $PODMAN_TMPDIR/test.yaml
if [ -e /usr/sbin/selinuxenabled -a /usr/sbin/selinuxenabled ]; then
run ls -Zd $TESTDIR
- is "$output" ${RELABEL} "selinux relabel should have happened"
+ is "$output" "${RELABEL} $TESTDIR" "selinux relabel should have happened"
fi
run_podman stop -a -t 0
@@ -88,7 +88,7 @@ RELABEL="system_u:object_r:container_file_t:s0"
run_podman play kube $PODMAN_TMPDIR/test.yaml
if [ -e /usr/sbin/selinuxenabled -a /usr/sbin/selinuxenabled ]; then
run ls -Zd $TESTDIR
- is "$output" ${RELABEL} "selinux relabel should have happened"
+ is "$output" "${RELABEL} $TESTDIR" "selinux relabel should have happened"
fi
run_podman stop -a -t 0