diff options
author | Fabricio Voznika <fvoznika@google.com> | 2019-01-24 14:19:07 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-01-24 14:20:16 -0800 |
commit | 01679f3b5ab957c274690a62f0fce5d332ee94af (patch) | |
tree | d8379c22c1a4df03c096984eb2cfe0b3c5582311 /test/syscalls/build_defs.bzl | |
parent | 79e0451bd11645b0dff34c3a6c6131ed68c822f7 (diff) |
Increase gofer coverage in tests
Lots of tests use /tmp for the tests. Force /tmp to be
mounted over fsgofer instead of tmpfs.
PiperOrigin-RevId: 230788985
Change-Id: Id6597ed88133232d15e808c48126bf77cb32673e
Diffstat (limited to 'test/syscalls/build_defs.bzl')
-rw-r--r-- | test/syscalls/build_defs.bzl | 11 |
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", |