Skip to content

Commit 427a240

Browse files
matloobgopherbot
authored andcommitted
cmd/go/testdata/script: update test_flags for new test output
With CL 635856, an error for a package missing go files is now caught at load time rather than at build time, so it's reported differently. Update the test to check for the correct output unbreak the builders. For #70820 Change-Id: I91fcac17961635b9a92782caa58c9a6f057a7e02 Reviewed-on: https://go-review.googlesource.com/c/go/+/637115 Reviewed-by: Sam Thanawalla <[email protected]> Auto-Submit: Michael Matloob <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 75736cc commit 427a240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmd/go/testdata/script/test_flags.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ stdout '\Aok\s+example.com/x\s+[0-9.s]+\n\z'
1515
# Even though ./x looks like a package path, the real package should be
1616
# the implicit '.'.
1717
! go test --answer=42 ./x
18-
stdout '^FAIL\t. \[build failed\]'
19-
stderr '^\.: no Go files in '$PWD'$'
18+
stdout '^FAIL\t. \[setup failed\]'
19+
stderr '^# \.\nno Go files in '$PWD'$'
2020

2121
# However, *flags* that appear after unrecognized flags should still be
2222
# interpreted as flags, under the (possibly-erroneous) assumption that

0 commit comments

Comments
 (0)