mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Disable tests for platforms tagged with "internal".
PiperOrigin-RevId: 453554360
This commit is contained in:
committed by
gVisor bot
parent
2e0ff5d9d0
commit
68ec240982
@@ -22,6 +22,7 @@ exempt_go_library(
|
||||
linux = [
|
||||
"//pkg/sentry/platform/%s" % platform
|
||||
for platform in platforms
|
||||
if "internal" not in platforms[platform]
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
+10
-4
@@ -148,6 +148,12 @@ def _syscall_test(
|
||||
**kwargs
|
||||
)
|
||||
|
||||
def all_platforms():
|
||||
"""All platforms returns a list of all platforms."""
|
||||
available = dict(platforms.items())
|
||||
available[default_platform] = platforms.get(default_platform, [])
|
||||
return available.items()
|
||||
|
||||
def syscall_test(
|
||||
test,
|
||||
use_tmpfs = False,
|
||||
@@ -190,7 +196,7 @@ def syscall_test(
|
||||
**kwargs
|
||||
)
|
||||
|
||||
for (platform, platform_tags) in platforms.items():
|
||||
for platform, platform_tags in all_platforms():
|
||||
_syscall_test(
|
||||
test = test,
|
||||
platform = platform,
|
||||
@@ -221,7 +227,7 @@ def syscall_test(
|
||||
platform = default_platform,
|
||||
use_tmpfs = use_tmpfs,
|
||||
add_uds_tree = add_uds_tree,
|
||||
tags = platforms[default_platform] + tags,
|
||||
tags = platforms.get(default_platform, []) + tags,
|
||||
debug = debug,
|
||||
fuse = fuse,
|
||||
overlay = True,
|
||||
@@ -234,7 +240,7 @@ def syscall_test(
|
||||
use_tmpfs = use_tmpfs,
|
||||
network = "host",
|
||||
add_uds_tree = add_uds_tree,
|
||||
tags = platforms[default_platform] + tags,
|
||||
tags = platforms.get(default_platform, []) + tags,
|
||||
debug = debug,
|
||||
fuse = fuse,
|
||||
**kwargs
|
||||
@@ -246,7 +252,7 @@ def syscall_test(
|
||||
platform = default_platform,
|
||||
use_tmpfs = use_tmpfs,
|
||||
add_uds_tree = add_uds_tree,
|
||||
tags = platforms[default_platform] + tags,
|
||||
tags = platforms.get(default_platform, []) + tags,
|
||||
debug = debug,
|
||||
file_access = "shared",
|
||||
fuse = fuse,
|
||||
|
||||
Reference in New Issue
Block a user