mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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 <samthanawalla@google.com> Auto-Submit: Michael Matloob <matloob@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
75736cc169
commit
427a2401af
1 changed files with 2 additions and 2 deletions
4
src/cmd/go/testdata/script/test_flags.txt
vendored
4
src/cmd/go/testdata/script/test_flags.txt
vendored
|
|
@ -15,8 +15,8 @@ stdout '\Aok\s+example.com/x\s+[0-9.s]+\n\z'
|
||||||
# Even though ./x looks like a package path, the real package should be
|
# Even though ./x looks like a package path, the real package should be
|
||||||
# the implicit '.'.
|
# the implicit '.'.
|
||||||
! go test --answer=42 ./x
|
! go test --answer=42 ./x
|
||||||
stdout '^FAIL\t. \[build failed\]'
|
stdout '^FAIL\t. \[setup failed\]'
|
||||||
stderr '^\.: no Go files in '$PWD'$'
|
stderr '^# \.\nno Go files in '$PWD'$'
|
||||||
|
|
||||||
# However, *flags* that appear after unrecognized flags should still be
|
# However, *flags* that appear after unrecognized flags should still be
|
||||||
# interpreted as flags, under the (possibly-erroneous) assumption that
|
# interpreted as flags, under the (possibly-erroneous) assumption that
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue