From 902f2cc7f9feb9aaf06ddaa0f7567c6bea961caa Mon Sep 17 00:00:00 2001 From: Peter Hunt Date: Tue, 1 Oct 2024 10:01:36 -0400 Subject: [PATCH] runtime: chmod busybox so test passes Signed-off-by: Peter Hunt --- runner/conmon_test/runtime_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runner/conmon_test/runtime_test.go b/runner/conmon_test/runtime_test.go index d34ff485..13899dd6 100644 --- a/runner/conmon_test/runtime_test.go +++ b/runner/conmon_test/runtime_test.go @@ -41,7 +41,9 @@ var _ = Describe("runc", func() { tmpPidFile = filepath.Join(tmpDir, "pidfile") - Expect(os.Link(busyboxDest, filepath.Join(tmpRootfs, "busybox"))).To(BeNil()) + busyboxPath := filepath.Join(tmpRootfs, "busybox") + Expect(os.Link(busyboxDest, busyboxPath)).To(BeNil()) + Expect(os.Chmod(busyboxPath, 0777)).To(BeNil()) // finally, create config.json _, err = generateRuntimeConfig(tmpDir, tmpRootfs)