summaryrefslogtreecommitdiffhomepage
path: root/test/runner
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2020-06-17 12:32:59 -0700
committergVisor bot <gvisor-bot@google.com>2020-06-17 12:34:33 -0700
commit6d806ee7198422973a2e4efa9b539de7792b933f (patch)
tree460a7f620751543e0470977979068b70a1618910 /test/runner
parente5d97cbcc1e64185b8fab1cf563c8754edd2e52e (diff)
Remove various uses of 'blacklist'
Updates #2972 PiperOrigin-RevId: 316942245
Diffstat (limited to 'test/runner')
-rw-r--r--test/runner/runner.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/runner/runner.go b/test/runner/runner.go
index f8baf61b0..5456e46a6 100644
--- a/test/runner/runner.go
+++ b/test/runner/runner.go
@@ -391,12 +391,12 @@ func runTestCaseRunsc(testBin string, tc gtest.TestCase, t *testing.T) {
}
}
-// filterEnv returns an environment with the blacklisted variables removed.
-func filterEnv(env, blacklist []string) []string {
+// filterEnv returns an environment with the excluded variables removed.
+func filterEnv(env, exclude []string) []string {
var out []string
for _, kv := range env {
ok := true
- for _, k := range blacklist {
+ for _, k := range exclude {
if strings.HasPrefix(kv, k+"=") {
ok = false
break