summaryrefslogtreecommitdiff
path: root/security/govulncheck/files/patch-all__test.go
diff options
context:
space:
mode:
Diffstat (limited to 'security/govulncheck/files/patch-all__test.go')
-rw-r--r--security/govulncheck/files/patch-all__test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/govulncheck/files/patch-all__test.go b/security/govulncheck/files/patch-all__test.go
new file mode 100644
index 000000000000..e6186df4baba
--- /dev/null
+++ b/security/govulncheck/files/patch-all__test.go
@@ -0,0 +1,11 @@
+--- all_test.go.orig 2025-05-08 09:17:55 UTC
++++ all_test.go
+@@ -84,7 +84,7 @@ func rungo(t *testing.T, args ...string) {
+ t.Helper()
+ testenv.NeedsGoBuild(t)
+
+- cmd := exec.Command("go", args...)
++ cmd := exec.Command("%%GO_CMD%%", args...)
+ if output, err := cmd.CombinedOutput(); err != nil {
+ if ee := (*exec.ExitError)(nil); errors.As(err, &ee) && len(ee.Stderr) > 0 {
+ t.Fatalf("%v: %v\n%s", cmd, err, ee.Stderr)