From 2ccd5269753682b98a59bc22456db5e00dbd0e6e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 15 Oct 2026 00:34:19 +0900 Subject: internal/testsuite: silence session services These are too noisy and are not useful outside of debugging the test suite itself, so silence them by default. Signed-off-by: Ophestra --- cmd/hakurei/testsuite/sandbox/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cmd') diff --git a/cmd/hakurei/testsuite/sandbox/main.go b/cmd/hakurei/testsuite/sandbox/main.go index 31e85331..18ebe32a 100644 --- a/cmd/hakurei/testsuite/sandbox/main.go +++ b/cmd/hakurei/testsuite/sandbox/main.go @@ -35,7 +35,7 @@ func mustStart( ) (pid int, done <-chan error) { _serial := strconv.FormatUint(serial, 10) _, done = testsuite.MustStartWith( - ctx, cred, nil, files, + ctx, cred, false, nil, files, "hakurei", "exec", "-a", strconv.Itoa(identity), "sleep", "infinity", _serial, @@ -202,12 +202,12 @@ func main() { for _, p := range []byte{'a', 'b', 'i', 'p'} { testsuite.MustFail( - &cred, nil, + &cred, nil, false, "hakurei", "exec", "capsh", "--has-"+string(p)+"=CAP_SYS_ADMIN", ) } testsuite.MustFail( - &cred, nil, + &cred, nil, false, "hakurei", "exec", "umount", "-R", "/dev", ) }) @@ -287,7 +287,7 @@ func main() { for name, tc := range testdata.All() { wg.Go(func() { _, pid := testsuite.MustStartHakurei( - &wg, &cred, dbusEnv, + ctx, &wg, &cred, dbusEnv, func(err error, output string) { log.Printf("completed test case %s\n%s", name, output) if err != nil { -- cgit v1.3.1