Skip to content

Commit 8a9d21b

Browse files
committed
tests: Include stderr in TestGopherJSCanBeVendored output.
This way, we get more information when/if TestGopherJSCanBeVendored fails. Before: $ go test -v -run=TestGopherJSCanBeVendored === RUN TestGopherJSCanBeVendored --- FAIL: TestGopherJSCanBeVendored (5.20s) gorepo_test.go:38: exit status 1 FAIL exit status 1 FAIL github.com/gopherjs/gopherjs/tests 5.203s After: $ go test -v -run=TestGopherJSCanBeVendored === RUN TestGopherJSCanBeVendored vendoring github.com/gopherjs/gopherjs/js package is not supported, see #415 --- FAIL: TestGopherJSCanBeVendored (5.19s) gorepo_test.go:40: exit status 1 FAIL exit status 1 FAIL github.com/gopherjs/gopherjs/tests 5.190s
1 parent 49f2b5c commit 8a9d21b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/gorepo_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ func TestGopherJSCanBeVendored(t *testing.T) {
3333
t.Skip("test meant to be run using normal Go compiler (needs os/exec)")
3434
}
3535

36-
got, err := exec.Command("bash", "gopherjsvendored_test.sh").Output()
36+
cmd := exec.Command("bash", "gopherjsvendored_test.sh")
37+
cmd.Stderr = os.Stdout
38+
got, err := cmd.Output()
3739
if err != nil {
3840
t.Fatal(err)
3941
}

0 commit comments

Comments
 (0)