container: access test case by index in helper
Some checks failed
Test / Create distribution (push) Successful in 26s
Test / Sandbox (push) Successful in 2m14s
Test / Hakurei (push) Failing after 3m27s
Test / Sandbox (race detector) (push) Successful in 3m48s
Test / Planterette (push) Successful in 3m54s
Test / Hakurei (race detector) (push) Successful in 4m55s
Test / Flake checks (push) Has been skipped

This is more elegant and allows for much easier extension of the tests. Mountinfo is still serialised however due to libPaths nondeterminism.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-07-26 01:52:36 +09:00
parent e71ae3b8c5
commit e642a60294
3 changed files with 215 additions and 140 deletions

View File

@@ -270,6 +270,7 @@ func Init(prepare func(prefix string), setVerbose func(verbose bool)) {
cmd.ExtraFiles = extraFiles
cmd.Dir = params.Dir
msg.Verbosef("starting initial program %s", params.Path)
if err := cmd.Start(); err != nil {
log.Fatalf("%v", err)
}