Skip to content

Commit e3d42af

Browse files
committed
update testscript so that it propagates GORACE
Verified again that testing ./cmd/cue/cmd with GORACE=atexit_sleep_ms=10 still only takes ~5s rather than ~20s. Signed-off-by: Daniel Martí <[email protected]> Change-Id: Ic117d691b45f78f853eecb5803a4dc6665885b69 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1169964 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
1 parent f3a515e commit e3d42af

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cmd/cue/cmd/script_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ func TestScript(t *testing.T) {
106106
"GOPROXY="+srv.URL,
107107
"GONOSUMDB=*", // GOPROXY is a private proxy
108108
homeEnvName()+"="+home,
109-
"GORACE="+os.Getenv("GORACE"), // TODO(mvdan): testscript should do this by default
110109
)
111110
return nil
112111
},

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/kr/pretty v0.3.1
1313
github.com/mpvl/unique v0.0.0-20150818121801-cbe035fff7de
1414
github.com/protocolbuffers/txtpbfmt v0.0.0-20230328191034-3462fbc510c0
15-
github.com/rogpeppe/go-internal v1.11.0
15+
github.com/rogpeppe/go-internal v1.11.1-0.20230926105539-32ae33786ecc
1616
github.com/spf13/cobra v1.7.0
1717
github.com/spf13/pflag v1.0.5
1818
github.com/tetratelabs/wazero v1.0.2

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsK
2828
github.com/protocolbuffers/txtpbfmt v0.0.0-20230328191034-3462fbc510c0 h1:sadMIsgmHpEOGbUs6VtHBXRR1OHevnj7hLx9ZcdNGW4=
2929
github.com/protocolbuffers/txtpbfmt v0.0.0-20230328191034-3462fbc510c0/go.mod h1:jgxiZysxFPM+iWKwQwPR+y+Jvo54ARd4EisXxKYpB5c=
3030
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
31-
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
32-
github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA=
31+
github.com/rogpeppe/go-internal v1.11.1-0.20230926105539-32ae33786ecc h1:mutztH6OmvFf2MGH0cqacv/FCFLkJn/rz3i7E/VWfm0=
32+
github.com/rogpeppe/go-internal v1.11.1-0.20230926105539-32ae33786ecc/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4=
3333
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
3434
github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I=
3535
github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0=

0 commit comments

Comments
 (0)