]> Cypherpunks repositories - gostls13.git/commit
misc/cgo/testshared: pass -x flag only to commands supporting it
authorJakub Čajka <jcajka@redhat.com>
Mon, 13 Dec 2021 12:28:15 +0000 (13:28 +0100)
committerIan Lance Taylor <iant@golang.org>
Wed, 15 Dec 2021 20:18:30 +0000 (20:18 +0000)
commitd5fefbb4980aaf46ac25344615c660136c365b9f
treed4397d9e9993d0d13032c4a212796553e64f5c62
parent567b177949d0819169c10ba6a07ff60554eb5285
misc/cgo/testshared: pass -x flag only to commands supporting it

Running testshared with the -testx flag leads to:

./testshared.test -testx -testwork
+ mkdir -p /tmp/shared_test125221103
shared_test.go:79: executing go env -x GOROOT failed exit status 2:
flag provided but not defined: -x
usage: go env [-json] [-u] [-w] [var ...]
Run 'go help env' for details.
panic: executing go env -x GOROOT failed exit status 2:
flag provided but not defined: -x
usage: go env [-json] [-u] [-w] [var ...]
Run 'go help env' for details.

Change-Id: Id299979487c021e9ad1d57f5f7088d935830a6a3
Reviewed-on: https://go-review.googlesource.com/c/go/+/371614
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Cherry Mui <cherryyz@google.com>
misc/cgo/testshared/shared_test.go