aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/runtest
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-02-14 19:01:57 +0100
committerTaras Madan <tarasmadan@google.com>2025-02-17 08:18:57 +0000
commit4121cf9df313ee111c01fde1f255d010c8d941cd (patch)
treedcd0d104c8c35997103297dfb7dc1f0de6b77b8e /pkg/runtest
parent9f05da3db0234203729d2ad179ab5a2f72bf607f (diff)
all: remove loop variables scoping
Diffstat (limited to 'pkg/runtest')
-rw-r--r--pkg/runtest/run.go3
-rw-r--r--pkg/runtest/run_test.go1
2 files changed, 0 insertions, 4 deletions
diff --git a/pkg/runtest/run.go b/pkg/runtest/run.go
index d9f0aa25a..e95a1aa38 100644
--- a/pkg/runtest/run.go
+++ b/pkg/runtest/run.go
@@ -241,7 +241,6 @@ nextSandbox:
"arch=" + ctx.Target.Arch: true,
}
for _, threaded := range []bool{false, true} {
- name := name
if threaded {
name += "/thr"
}
@@ -259,7 +258,6 @@ nextSandbox:
if times != 1 {
break
}
- name := name
if cov {
name += "/cover"
}
@@ -277,7 +275,6 @@ nextSandbox:
// and copy the binary to the target system.
continue
}
- name := name
properties["C"] = true
properties["executor"] = false
name += " C"
diff --git a/pkg/runtest/run_test.go b/pkg/runtest/run_test.go
index f11d2d231..09a401bb7 100644
--- a/pkg/runtest/run_test.go
+++ b/pkg/runtest/run_test.go
@@ -370,7 +370,6 @@ func testCover(t *testing.T, target *prog.Target) {
}
executor := csource.BuildExecutor(t, target, "../../")
for i, test := range tests {
- test := test
t.Run(fmt.Sprint(i), func(t *testing.T) {
t.Parallel()
source := queue.Plain()