Use a stat to tell the test caching infrastructure that we care about
the bogo config file.
Change-Id: Iae2336bfc45cd6a9e73cb83a3b68ade8b4f23927
Reviewed-on: https://go-review.googlesource.com/c/go/+/589155
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Roland Shoemaker <roland@golang.org>
t.Skip("#66913: windows network connections are flakey on builders")
}
+ // In order to make Go test caching work as expected, we stat the
+ // bogo_config.json file, so that the Go testing hooks know that it is
+ // important for this test and will invalidate a cached test result if the
+ // file changes.
+ if _, err := os.Stat("bogo_config.json"); err != nil {
+ t.Fatal(err)
+ }
+
var bogoDir string
if *bogoLocalDir != "" {
bogoDir = *bogoLocalDir