diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-11-10 20:16:39 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-11-10 20:16:39 +0900 |
| commit | d1703346a9421db0469841627b11722faf8c120e (patch) | |
| tree | 957c55e0136a4c3c788aa3f3ee28034215b67dfb /cmd | |
| parent | 83dd0303fec7daaf154d7cb6c30625a9e4da29d8 (diff) | |
cmd/hakurei/testsuite: remove sleep GNU-ism
The infinity argument is not available in lksh or toybox.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/hakurei/testsuite/main.go | 8 |
1 files changed, 4 insertions, 4 deletions
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) |
