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:
Michael Matloob 2024-12-13 17:33:16 -05:00 committed by Gopher Robot
parent 75736cc169
commit 427a2401af

View file

@ -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