diff options
author | Fabricio Voznika <fvoznika@google.com> | 2019-06-06 14:37:12 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-06-06 14:38:47 -0700 |
commit | bf0b1b9d767736e632fa56b90d904fee968d8d3d (patch) | |
tree | 3fcb183db04e85b6e0a3b3559b754f67d4643494 /test/syscalls/syscall_test_runner.go | |
parent | 8b8bd8d5b28a8e41f59fc3465c38964986bfb084 (diff) |
Add overlay dimension to FS related syscall tests
PiperOrigin-RevId: 251929314
Diffstat (limited to 'test/syscalls/syscall_test_runner.go')
-rw-r--r-- | test/syscalls/syscall_test_runner.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/syscalls/syscall_test_runner.go b/test/syscalls/syscall_test_runner.go index 9a8e0600b..eb04a4fab 100644 --- a/test/syscalls/syscall_test_runner.go +++ b/test/syscalls/syscall_test_runner.go @@ -47,6 +47,7 @@ var ( platform = flag.String("platform", "ptrace", "platform to run on") useTmpfs = flag.Bool("use-tmpfs", false, "mounts tmpfs for /tmp") fileAccess = flag.String("file-access", "exclusive", "mounts root in exclusive or shared mode") + overlay = flag.Bool("overlay", false, "wrap filesystem mounts with writable tmpfs overlay") parallel = flag.Bool("parallel", false, "run tests in parallel") runscPath = flag.String("runsc", "", "path to runsc binary") ) @@ -184,10 +185,13 @@ func runTestCaseRunsc(testBin string, tc gtest.TestCase, t *testing.T) { "-platform", *platform, "-root", rootDir, "-file-access", *fileAccess, - "--network=none", + "-network=none", "-log-format=text", "-TESTONLY-unsafe-nonroot=true", - "--net-raw=true", + "-net-raw=true", + } + if *overlay { + args = append(args, "-overlay") } if *debug { args = append(args, "-debug", "-log-packets=true") |