Skip to content

Commit 906338f

Browse files
qiulaidongfenggopherbot
authored andcommitted
cmd/go: relax the regular expression of TestScript/list_pkgconfig_error
Fixes #68283 Change-Id: Ia6af550f0fc232e4ae6f7ea96370138e958aaca2 GitHub-Last-Rev: 206ce8b GitHub-Pull-Request: #68324 Reviewed-on: https://go-review.googlesource.com/c/go/+/596935 Reviewed-by: David Chase <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Reviewed-by: Michael Matloob <[email protected]>
1 parent 6d856a8 commit 906338f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
[!exec:pkg-config] skip 'test requires pkg-config tool'
33

44
! go list -export .
5-
stderr '^# example\n# \[pkg-config .*\]\n(.*\n)*Package .* not found'
5+
# 'Package .* not found appears' in pkg-config and pkgconf; while
6+
# 'could not find package .*' appears in u-config. See #68283.
7+
stderr '#^ example\n#pkg-config .*\n(.*\n)*(Package .* not found)|(could not find package .*)'
68

79
-- go.mod --
810
module example

0 commit comments

Comments
 (0)