summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/build_defs.bzl
diff options
context:
space:
mode:
Diffstat (limited to 'test/syscalls/build_defs.bzl')
-rw-r--r--test/syscalls/build_defs.bzl11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/syscalls/build_defs.bzl b/test/syscalls/build_defs.bzl
index 854684d1c..6bcb7adf7 100644
--- a/test/syscalls/build_defs.bzl
+++ b/test/syscalls/build_defs.bzl
@@ -2,12 +2,12 @@
# syscall_test is a macro that will create targets to run the given test target
# on the host (native) and runsc.
-def syscall_test(test, shard_count = 5, size = "small"):
- _syscall_test(test, shard_count, size, "native")
- _syscall_test(test, shard_count, size, "kvm")
- _syscall_test(test, shard_count, size, "ptrace")
+def syscall_test(test, shard_count = 5, size = "small", use_tmpfs = False):
+ _syscall_test(test, shard_count, size, "native", False)
+ _syscall_test(test, shard_count, size, "kvm", use_tmpfs)
+ _syscall_test(test, shard_count, size, "ptrace", use_tmpfs)
-def _syscall_test(test, shard_count, size, platform):
+def _syscall_test(test, shard_count, size, platform, use_tmpfs):
test_name = test.split(":")[1]
# Prepend "runsc" to non-native platform names.
@@ -39,6 +39,7 @@ def _syscall_test(test, shard_count, size, platform):
# Arguments are passed directly to syscall_test_runner binary.
"--test-name=" + test_name,
"--platform=" + platform,
+ "--use-tmpfs=" + str(use_tmpfs),
"--debug=false",
"--strace=false",
"--parallel=true",