summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-07-12 14:53:17 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2022-07-12 14:53:17 -0400
commitc9a82d72a776348a7b98a26a58a8a913657fdc8c (patch)
treeaedf12b02ea94c8f6ca7fa780a1d906ded12b662 /test/e2e
parentedbfbfcda18f57c89a9657ba453c51977a7796a9 (diff)
downloadpodman-c9a82d72a776348a7b98a26a58a8a913657fdc8c.tar.gz
podman-c9a82d72a776348a7b98a26a58a8a913657fdc8c.tar.bz2
podman-c9a82d72a776348a7b98a26a58a8a913657fdc8c.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/e2e')
-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"))