aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-07-12 14:53:17 -0400
committerMatthew Heon <matthew.heon@pm.me>2022-07-26 13:05:59 -0400
commitb29a52a48a9cbe65f47cbdbb618366421ee851b5 (patch)
treee552fe35d6eb4b0062b02efa58072a05c9f31f7c /test
parentffd2e6df9dd624865b3aebe024e1ccfa5f554895 (diff)
downloadpodman-b29a52a48a9cbe65f47cbdbb618366421ee851b5.tar.gz
podman-b29a52a48a9cbe65f47cbdbb618366421ee851b5.tar.bz2
podman-b29a52a48a9cbe65f47cbdbb618366421ee851b5.zip
Docker uses "-c" to mean "--cpu-shares" in create and run
Add support for -c as an alias for --cpu-shares to be compatible with Docker. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test')
-rw-r--r--test/e2e/run_cpu_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/e2e/run_cpu_test.go b/test/e2e/run_cpu_test.go
index b21be5729..e57eb3b26 100644
--- a/test/e2e/run_cpu_test.go
+++ b/test/e2e/run_cpu_test.go
@@ -94,7 +94,7 @@ var _ = Describe("Podman run cpu", func() {
Expect(result).Should(Exit(0))
Expect(result.OutputToString()).To(Equal("10000"))
} else {
- result := podmanTest.Podman([]string{"run", "--rm", "--cpu-shares=2", ALPINE, "cat", "/sys/fs/cgroup/cpu/cpu.shares"})
+ result := podmanTest.Podman([]string{"run", "--rm", "-c", "2", ALPINE, "cat", "/sys/fs/cgroup/cpu/cpu.shares"})
result.WaitWithDefaultTimeout()
Expect(result).Should(Exit(0))
Expect(result.OutputToString()).To(Equal("2"))