diff options
| author | Russ Cox <rsc@golang.org> | 2024-11-20 10:08:18 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2024-11-20 18:12:28 +0000 |
| commit | 30b09bccfd2446de566f9dfd0592cb4406e639b2 (patch) | |
| tree | 3fccd662684b69cceb10395fe1c3feda7915d602 /src/crypto | |
| parent | 5165f54167a404985428cfd87aecc80595af491a (diff) | |
| download | go-30b09bccfd2446de566f9dfd0592cb4406e639b2.tar.xz | |
crypto/internal/fipstest: fix TestACVP not to write to module cache
Not sure how this ever worked; the module cache is read-only.
Change-Id: I22e4945fa0bac101995ab9101d22dcfdcee40776
Reviewed-on: https://go-review.googlesource.com/c/go/+/629976
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/crypto')
| -rw-r--r-- | src/crypto/internal/fipstest/acvp_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crypto/internal/fipstest/acvp_test.go b/src/crypto/internal/fipstest/acvp_test.go index 48559f6013..e59978e880 100644 --- a/src/crypto/internal/fipstest/acvp_test.go +++ b/src/crypto/internal/fipstest/acvp_test.go @@ -368,9 +368,11 @@ func TestACVP(t *testing.T) { t.Log("building acvptool") // Build the acvptool binary. + toolPath := filepath.Join(t.TempDir(), "acvptool.exe") goTool := testenv.GoToolPath(t) cmd := testenv.Command(t, goTool, "build", + "-o", toolPath, "./util/fipstools/acvp/acvptool") cmd.Dir = bsslDir out := &strings.Builder{} @@ -387,7 +389,6 @@ func TestACVP(t *testing.T) { t.Fatalf("failed to fetch cwd: %s", err) } configPath := filepath.Join(cwd, "acvp_test.config.json") - toolPath := filepath.Join(bsslDir, "acvptool") t.Logf("running check_expected.go\ncwd: %q\ndata_dir: %q\nconfig: %q\ntool: %q\nmodule-wrapper: %q\n", cwd, dataDir, configPath, toolPath, os.Args[0]) |
