mirror of
https://github.com/containers/podman.git
synced 2026-10-20 08:55:09 -04:00
e2e: ExitCleanly(): more low-hanging fruit
Commit 2 of 2: minor tweaks to get tests passing Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
1 parent
a50fb7e061
commit
0ac98176be
2 files changed
+4
-4
No files matched your search
@@ -122,7 +122,7 @@ var _ = Describe("Podman run cpu", func() {
|
||||
SkipIfCgroupV1("testing options that only work in cgroup v2")
|
||||
result := podmanTest.Podman([]string{"run", "--rm", "--cpu-rt-period=5000", ALPINE, "ls"})
|
||||
result.WaitWithDefaultTimeout()
|
||||
Expect(result).Should(ExitCleanly())
|
||||
Expect(result).Should(Exit(0))
|
||||
Expect(result.ErrorToString()).To(ContainSubstring("Realtime period not supported on cgroups V2 systems"))
|
||||
})
|
||||
|
||||
@@ -130,7 +130,7 @@ var _ = Describe("Podman run cpu", func() {
|
||||
SkipIfCgroupV1("testing options that only work in cgroup v2")
|
||||
result := podmanTest.Podman([]string{"run", "--rm", "--cpu-rt-runtime=5000", ALPINE, "ls"})
|
||||
result.WaitWithDefaultTimeout()
|
||||
Expect(result).Should(ExitCleanly())
|
||||
Expect(result).Should(Exit(0))
|
||||
Expect(result.ErrorToString()).To(ContainSubstring("Realtime runtime not supported on cgroups V2 systems"))
|
||||
})
|
||||
})
|
||||
@@ -10,14 +10,14 @@ import (
|
||||
var _ = Describe("Podman run", func() {
|
||||
|
||||
It("podman run --seccomp-policy default", func() {
|
||||
session := podmanTest.Podman([]string{"run", "--seccomp-policy", "default", alpineSeccomp, "ls"})
|
||||
session := podmanTest.Podman([]string{"run", "-q", "--seccomp-policy", "default", alpineSeccomp, "ls"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(ExitCleanly())
|
||||
})
|
||||
|
||||
It("podman run --seccomp-policy ''", func() {
|
||||
// Empty string is interpreted as "default".
|
||||
session := podmanTest.Podman([]string{"run", "--seccomp-policy", "", alpineSeccomp, "ls"})
|
||||
session := podmanTest.Podman([]string{"run", "-q", "--seccomp-policy", "", alpineSeccomp, "ls"})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session).Should(ExitCleanly())
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user