From 8f0fb2c54e5e91c2a545db88e2e31e16f75ba55b Mon Sep 17 00:00:00 2001 From: qiulaidongfeng <2645477756@qq.com> Date: Sat, 28 Sep 2024 02:37:20 +0800 Subject: [PATCH] cmd/go: relax the regular expression of TestScript/list_pkgconfig_error Fixes #68283 Change-Id: I63bd128bd10565ce16a13b5a60d813368db26f26 Reviewed-on: https://go-review.googlesource.com/c/go/+/616339 LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Matloob Auto-Submit: Ian Lance Taylor Reviewed-by: Michael Knyszek --- src/cmd/go/testdata/script/list_pkgconfig_error.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/testdata/script/list_pkgconfig_error.txt b/src/cmd/go/testdata/script/list_pkgconfig_error.txt index f554d2a4ed6..c0e91a58150 100644 --- a/src/cmd/go/testdata/script/list_pkgconfig_error.txt +++ b/src/cmd/go/testdata/script/list_pkgconfig_error.txt @@ -2,7 +2,7 @@ [!exec:pkg-config] skip 'test requires pkg-config tool' ! go list -export . -stderr '^# example\n# \[pkg-config .*\]\n(.*\n)*Package .* not found' +stderr '^# example\n# \[pkg-config .*\]\n(.*\n)*(Package .* not found)|(could not find package .*)' -- go.mod -- module example