feat: quiten miro test ouput

This commit is contained in:
2026-03-21 05:04:05 +00:00
parent 705933726e
commit 0aaa3b6ac2
3 changed files with 5 additions and 7 deletions
+2 -2
View File
@@ -222,8 +222,8 @@ func replayScenario(scenario testScenario, shellPath string, tio testIO, sandbox
compareMarkerEnvName: compareMarkerEnabledValue,
})
cmd.Stdin = bytes.NewReader(input)
cmd.Stdout = tio.out
cmd.Stderr = tio.err
cmd.Stdout = io.Discard
cmd.Stderr = io.Discard
if err := cmd.Run(); err != nil {
return fmt.Errorf("replay failed: %v", err)
+3 -3
View File
@@ -66,7 +66,7 @@ func TestDiscoverTestScenariosRejectsMissingInFixture(t *testing.T) {
}
}
func TestReplayScenarioUsesRecordedInputAndStripsScriptWrapper(t *testing.T) {
func TestReplayScenarioUsesRecordedInputAndKeepsReplayOutputQuiet(t *testing.T) {
addFakeRecordDependencies(t, "script")
t.Setenv("FAKE_SCRIPT_ECHO_STDIN", "1")
@@ -97,8 +97,8 @@ func TestReplayScenarioUsesRecordedInputAndStripsScriptWrapper(t *testing.T) {
if got := readFile(t, capturedInput); got != "echo replay\nexit\n" {
t.Fatalf("captured stdin = %q, want recorded input", got)
}
if got := stdout.String(); !strings.Contains(got, "echo replay\nexit\n") {
t.Fatalf("stdout = %q, want streamed replay output", got)
if stdout.String() != "" {
t.Fatalf("stdout = %q, want empty", stdout.String())
}
if stderr.String() != "" {
t.Fatalf("stderr = %q, want empty", stderr.String())