From 01679f3b5ab957c274690a62f0fce5d332ee94af Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Thu, 24 Jan 2019 14:19:07 -0800 Subject: 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 --- test/syscalls/build_defs.bzl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'test/syscalls/build_defs.bzl') 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", -- cgit v1.2.3