aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2020-03-20 09:03:39 -0400
committerThan McIntosh <thanm@google.com>2020-03-20 14:28:59 +0000
commit776a9d0958973bff6a66e61baa6a9a240ada4255 (patch)
tree4dfbecf6df08cb2a493740e25c005e580c28d66d /misc
parent9d468f482f20f886d3c7d66c60e1ce0acbaaad44 (diff)
downloadgo-776a9d0958973bff6a66e61baa6a9a240ada4255.tar.gz
go-776a9d0958973bff6a66e61baa6a9a240ada4255.zip
test: fix -test.v trace output for cgo/testshared
Trace output showing how dummy GOROOT was being set up was incorrect (sense of the "cp -r" trace messages was inverted). This patch fixes the problem. Change-Id: Ib0ee649e305bfa1bc0c49e0d5ba2ea31e0a4f67e Reviewed-on: https://go-review.googlesource.com/c/go/+/224377 Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'misc')
-rw-r--r--misc/cgo/testshared/shared_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/cgo/testshared/shared_test.go b/misc/cgo/testshared/shared_test.go
index c7f15b8e891..acae1b2c212 100644
--- a/misc/cgo/testshared/shared_test.go
+++ b/misc/cgo/testshared/shared_test.go
@@ -221,7 +221,7 @@ func cloneGOROOTDeps(goroot string) error {
for _, dir := range gorootDirs {
if testing.Verbose() {
- fmt.Fprintf(os.Stderr, "+ cp -r %s %s\n", filepath.Join(goroot, dir), filepath.Join(oldGOROOT, dir))
+ fmt.Fprintf(os.Stderr, "+ cp -r %s %s\n", filepath.Join(oldGOROOT, dir), filepath.Join(goroot, dir))
}
if err := overlayDir(filepath.Join(goroot, dir), filepath.Join(oldGOROOT, dir)); err != nil {
return err