diff --git a/test/e2e/run_cpu_test.go b/test/e2e/run_cpu_test.go index 98a078b15f..59985b28d3 100644 --- a/test/e2e/run_cpu_test.go +++ b/test/e2e/run_cpu_test.go @@ -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")) }) }) diff --git a/test/e2e/run_seccomp_test.go b/test/e2e/run_seccomp_test.go index e3bcf5151a..46c82f0249 100644 --- a/test/e2e/run_seccomp_test.go +++ b/test/e2e/run_seccomp_test.go @@ -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()) })