summaryrefslogtreecommitdiff
path: root/libgo/go/cmd/go/script_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/cmd/go/script_test.go')
-rw-r--r--libgo/go/cmd/go/script_test.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/go/cmd/go/script_test.go b/libgo/go/cmd/go/script_test.go
index 9e958e0c635..6399faac0f4 100644
--- a/libgo/go/cmd/go/script_test.go
+++ b/libgo/go/cmd/go/script_test.go
@@ -635,6 +635,9 @@ func scriptMatch(ts *testScript, neg bool, args []string, text, name string) {
text = string(data)
}
+ // Matching against workdir would be misleading.
+ text = strings.Replace(text, ts.workdir, "$WORK", -1)
+
if neg {
if re.MatchString(text) {
if isGrep {