From 95e5e624247e7b2ae404786a954c06ee5cd81a26 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Mon, 14 Mar 2016 21:17:20 -0700 Subject: [PATCH] imports: fix TestFindImportVendor for 1.5 (fix build) TBR=adonovan Change-Id: I7edeb180bdf09648e7539b9371db0d14272b9030 Reviewed-on: https://go-review.googlesource.com/20697 Reviewed-by: Robert Griesemer --- imports/fix_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/imports/fix_test.go b/imports/fix_test.go index 1430c89ca1..a1cedf91f1 100644 --- a/imports/fix_test.go +++ b/imports/fix_test.go @@ -865,7 +865,10 @@ func TestFindImportInternal(t *testing.T) { build.Default.GOPATH = oldGOPATH }() - _, err := os.Stat(filepath.Join(runtime.GOROOT(), "src/internal")) + // Check for src/internal/race, not just src/internal, + // so that we can run this test also against go1.5 + // (which doesn't contain that file). + _, err := os.Stat(filepath.Join(runtime.GOROOT(), "src/internal/race")) if err != nil { t.Skip(err) }