From d1703346a9421db0469841627b11722faf8c120e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 10 Nov 2026 20:16:39 +0900 Subject: cmd/hakurei/testsuite: remove sleep GNU-ism The infinity argument is not available in lksh or toybox. Signed-off-by: Ophestra --- cmd/hakurei/testsuite/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cmd') diff --git a/cmd/hakurei/testsuite/main.go b/cmd/hakurei/testsuite/main.go index 0aaa7fd5..2c4ff8e3 100644 --- a/cmd/hakurei/testsuite/main.go +++ b/cmd/hakurei/testsuite/main.go @@ -93,7 +93,7 @@ func checkHakurei( wantCode = []int{130} } - c := newConfig(name, "sleep", "infinity") + c := newConfig(name, "sleep", "2d") if processConfig != nil { processConfig(c) } @@ -270,7 +270,7 @@ func main() { )(testsuite.MustOutput( ctx, &cred, nil, 0, "timeout lingering process", "hakurei", "exec", "--no-wait", - "bash", "-c", "sleep infinity & disown", + "sh", "-c", "sleep 172800 &", )) }) @@ -616,7 +616,7 @@ func main() { []string{"exec"}, args, []string{"sh", "-c", - "touch /tmp/ok." + _serial + " && sleep infinity"}, + "touch /tmp/ok." + _serial + " && sleep 172800"}, )...) var stdout, stderr strings.Builder cmd.Stdout, cmd.Stderr = &stdout, &stderr @@ -774,7 +774,7 @@ func main() { wg.Go(func() { defer log.Println("validated revert type selection") - c := newConfig("rts", "sleep", "infinity") + c := newConfig("rts", "sleep", "2d") c.Container.Flags |= hst.FShareRuntime uid := hst.ToUser(0, c.Identity) -- cgit v1.3.1