diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-15 00:52:41 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-15 00:52:41 +0900 |
| commit | 0cc566892fb34cf74e24a5f78f97fc434528a5ce (patch) | |
| tree | ffccf47d30f9cc2039ab842861b620798bfb5405 | |
| parent | 2ccd5269753682b98a59bc22456db5e00dbd0e6e (diff) | |
internal/testsuite: disconnect script from stdin
The util-linux script program really messes up any terminal attached to
stdin. Since the test programs do not take any input, and stdin is a
shared resource that cannot be used anyway, this change disconnects it
from stdin.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | internal/testsuite/testsuite.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/testsuite/testsuite.go b/internal/testsuite/testsuite.go index a940435b..82cc23ec 100644 --- a/internal/testsuite/testsuite.go +++ b/internal/testsuite/testsuite.go @@ -496,7 +496,7 @@ func StartHakurei( Credential: cred, } var output strings.Builder - cmd.Stdin, cmd.Stdout, cmd.Stderr = os.Stdin, &output, &output + cmd.Stdout, cmd.Stderr = &output, &output cmd.Env = SessionEnv(dbusEnv) var notify, _notify, _conf, conf, ident, _ident *os.File |
