summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2020-10-12 17:55:37 -0700
committergVisor bot <gvisor-bot@google.com>2020-10-12 17:57:37 -0700
commit10ca12b3d089fa16f67d886ed6dc2cacd2468d0b (patch)
tree85f8ead926528580b99012ccd754570994f8b7ab /test
parent4885931ac342e033b39ba9645b8e6a584f4d9844 (diff)
gvisor/test: Set nogotsan for native tests
Tests are written in C++ and there is no reason to run them with gotsan without gVisor. PiperOrigin-RevId: 336783276
Diffstat (limited to 'test')
-rw-r--r--test/runner/defs.bzl4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/runner/defs.bzl b/test/runner/defs.bzl
index 248053dc3..232fdd4d4 100644
--- a/test/runner/defs.bzl
+++ b/test/runner/defs.bzl
@@ -102,6 +102,10 @@ def _syscall_test(
# Disable off-host networking.
tags.append("requires-net:loopback")
+ # gotsan makes sense only if tests are running in gVisor.
+ if platform == "native":
+ tags.append("nogotsan")
+
runner_args = [
# Arguments are passed directly to runner binary.
"--platform=" + platform,