]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/testdata/script: update test_flags for new test output
authorMichael Matloob <matloob@golang.org>
Fri, 13 Dec 2024 22:33:16 +0000 (17:33 -0500)
committerGopher Robot <gobot@golang.org>
Tue, 17 Dec 2024 15:54:16 +0000 (07:54 -0800)
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>

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

index 7adf4e273c569a697760fe9cf460af5cf7c9b4ee..afef08840df87a536450c6e5c5f8cfdba2238aae 100644 (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
 # the implicit '.'.
 ! go test --answer=42 ./x
-stdout '^FAIL\t. \[build failed\]'
-stderr '^\.: no Go files in '$PWD'$'
+stdout '^FAIL\t. \[setup failed\]'
+stderr '^# \.\nno Go files in '$PWD'$'
 
 # However, *flags* that appear after unrecognized flags should still be
 # interpreted as flags, under the (possibly-erroneous) assumption that