From 67869273a810621e979c55757343b076f2d32706 Mon Sep 17 00:00:00 2001 From: Filipe Brandenburger Date: Wed, 3 Jan 2018 10:58:39 -0800 Subject: [PATCH] Don't assume ipcmk command supports size suffix. Expand the use of "1M" to the corresponding number of bytes, since support for size suffix was only added to `ipcmk` in util-linux 2.27 which is not yet available in some Linux distributions. Tested by running `make test-e2e-node` against distributions with ipcmk that supports and doesn't support the suffix syntax, all of them passed. --- test/e2e_node/security_context_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e_node/security_context_test.go b/test/e2e_node/security_context_test.go index 7e30d167fc9..e6f19a1147e 100644 --- a/test/e2e_node/security_context_test.go +++ b/test/e2e_node/security_context_test.go @@ -150,7 +150,7 @@ var _ = framework.KubeDescribe("Security Context", func() { hostSharedMemoryID := "" BeforeEach(func() { - output, err := exec.Command("sh", "-c", "ipcmk -M 1M | awk '{print $NF}'").Output() + output, err := exec.Command("sh", "-c", "ipcmk -M 1048576 | awk '{print $NF}'").Output() if err != nil { framework.Failf("Failed to create the shared memory on the host: %v", err) }