]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: remove GOTESTONLY environment variable
authorDmitri Shuralyov <dmitshur@golang.org>
Fri, 2 Dec 2022 18:33:04 +0000 (13:33 -0500)
committerGopher Robot <gobot@golang.org>
Fri, 20 Jan 2023 17:47:38 +0000 (17:47 +0000)
This hook was added for the Go build system (x/build) to be able to set
the run flag value, but it's no longer used anywhere. Remove it for now.

Updates #46054.

Change-Id: I64e7d68d2b270303f3bd54f73079600f209e350a
Reviewed-on: https://go-review.googlesource.com/c/go/+/455519
Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Austin Clements <austin@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/cmd/dist/test.go

index a94945893c4ea9617bcd725d4e31b296beb6a460..5b725394e48d3b267447386ab723a08ad8f5e10a 100644 (file)
@@ -36,7 +36,7 @@ func cmdtest() {
        flag.BoolVar(&t.race, "race", false, "run in race builder mode (different set of tests)")
        flag.BoolVar(&t.compileOnly, "compile-only", false, "compile tests, but don't run them. This is for some builders. Not all dist tests respect this flag, but most do.")
        flag.StringVar(&t.banner, "banner", "##### ", "banner prefix; blank means no section banners")
-       flag.StringVar(&t.runRxStr, "run", os.Getenv("GOTESTONLY"),
+       flag.StringVar(&t.runRxStr, "run", "",
                "run only those tests matching the regular expression; empty means to run all. "+
                        "Special exception: if the string begins with '!', the match is inverted.")
        flag.BoolVar(&t.msan, "msan", false, "run in memory sanitizer builder mode")