diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-09 12:23:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-09 12:23:20 +0200 |
commit | f24bdeef268ad769707e12c1a4010b98e9b8de93 (patch) | |
tree | ebe42972ab62148f3f55f29fafd23f18738ace25 /test | |
parent | 6d8bafe57a65970ead17a83cb1983629b3a2aedb (diff) | |
parent | c7411af9e2f2f38beb48d07a401cb06dc8d9b328 (diff) | |
download | podman-f24bdeef268ad769707e12c1a4010b98e9b8de93.tar.gz podman-f24bdeef268ad769707e12c1a4010b98e9b8de93.tar.bz2 podman-f24bdeef268ad769707e12c1a4010b98e9b8de93.zip |
Merge pull request #15713 from sstosh/cpu-rt-cgroupsv2
Ignore cpu realtime options on cgroups V2 systems
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/run_cpu_test.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/e2e/run_cpu_test.go b/test/e2e/run_cpu_test.go index e57eb3b26..19bb735ff 100644 --- a/test/e2e/run_cpu_test.go +++ b/test/e2e/run_cpu_test.go @@ -138,4 +138,20 @@ var _ = Describe("Podman run cpu", func() { result.WaitWithDefaultTimeout() Expect(result).To(ExitWithError()) }) + + It("podman run invalid cpu-rt-period with cgroupsv2", 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(Exit(0)) + Expect(result.ErrorToString()).To(ContainSubstring("Realtime period not supported on cgroups V2 systems")) + }) + + It("podman run invalid cpu-rt-runtime with cgroupsv2", 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(Exit(0)) + Expect(result.ErrorToString()).To(ContainSubstring("Realtime runtime not supported on cgroups V2 systems")) + }) }) |