Skip to content

Commit ec7f353

Browse files
author
Tim Zhou
committed
update tests duo to CRUN#1767 to support both values
Signed-off-by: Tim Zhou <tizhou@redhat.com>
1 parent 72e8c82 commit ec7f353

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/e2e/update_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,14 @@ var _ = Describe("Podman update", func() {
141141
podmanTest.CheckFileInContainerSubstring(ctrID, "/sys/fs/cgroup/memory.swap.max", "1073741824")
142142

143143
// checking cpu-shares
144-
podmanTest.CheckFileInContainerSubstring(ctrID, "/sys/fs/cgroup/cpu.weight", "5")
144+
// Allow cpu.weight to be either "5" or "20"
145+
err := podmanTest.CheckFileInContainerSubstring(ctrID, "/sys/fs/cgroup/cpu.weight", "5")
146+
if err != nil {
147+
err = podmanTest.CheckFileInContainerSubstring(ctrID, "/sys/fs/cgroup/cpu.weight", "20")
148+
Expect(err).Should(BeNil())
149+
}
145150

151+
146152
// checking pids-limit
147153
podmanTest.CheckFileInContainerSubstring(ctrID, "/sys/fs/cgroup/pids.max", "123")
148154
})

0 commit comments

Comments
 (0)