Skip to content

Commit f95bdcb

Browse files
committed
Change TestGoRepositoryCompilerTests to stream output as it runs.
Previously, it would only display all of output when it finished.
1 parent 7b28e3b commit f95bdcb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/gorepo_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ func TestGoRepositoryCompilerTests(t *testing.T) {
1414
if testing.Verbose() {
1515
args = append(args, "-v")
1616
}
17-
out, err := exec.Command(args[0], args[1:]...).CombinedOutput()
17+
cmd := exec.Command(args[0], args[1:]...)
18+
cmd.Stdout = os.Stdout
19+
cmd.Stderr = os.Stdout
20+
err := cmd.Run()
1821
if err != nil {
19-
t.Fatalf("%v:\n%s", err, out)
22+
t.Fatal(err)
2023
}
21-
os.Stdout.Write(out)
2224
}

0 commit comments

Comments
 (0)