pgreco / rpms / golang

Forked from rpms/golang 4 years ago
Clone

Blame SOURCES/fix_TestScript_list_std.patch

fc0505
From 00b6dcb4eec0dd1bb931493e59ee223c08be1ae8 Mon Sep 17 00:00:00 2001
fc0505
From: Derek Parker <deparker@redhat.com>
fc0505
Date: Wed, 5 Dec 2018 13:20:23 -0800
fc0505
Subject: [PATCH] testdata/script: Ignore _$GOROOT in test
fc0505
fc0505
---
fc0505
 src/cmd/go/testdata/script/list_std.txt | 2 +-
fc0505
 1 file changed, 1 insertion(+), 1 deletion(-)
fc0505
fc0505
diff --git a/src/cmd/go/testdata/script/list_std.txt b/src/cmd/go/testdata/script/list_std.txt
fc0505
index a63d74db1205a4a905e319eb59b195ce0625163e..137eb717ad4a8ec24902dcf668b7de48e1929087 100644
fc0505
--- a/src/cmd/go/testdata/script/list_std.txt
fc0505
+++ b/src/cmd/go/testdata/script/list_std.txt
fc0505
@@ -3,7 +3,7 @@
fc0505
 # listing GOROOT should only find standard packages
fc0505
 cd $GOROOT/src
fc0505
 go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}' ./...
fc0505
-! stdout .
fc0505
+stdout _$GOROOT
fc0505
 # TODO: ignore _/blah/go/src in output
fc0505
 
fc0505
 # our vendored packages should be reported as standard
fc0505
-- 
fc0505
2.16.5
fc0505