diff options
author | Fabricio Voznika <fvoznika@google.com> | 2020-08-20 16:16:46 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-08-20 16:19:10 -0700 |
commit | e8a25a283447443ee895d41ae7ae95e96fe62140 (patch) | |
tree | 59b4b2fffa53a2e338746eae7990d46eab196cb3 /test/runner | |
parent | df4822709992c971af0f9b339d915f6e629c0225 (diff) |
Enable strace+debug in syscall tests
This is done to ease troubleshooting when tests fail. runsc
logs are not stored when tests passe, so this will only
affect failing tests and should not increase log storage
too badly.
PiperOrigin-RevId: 327717551
Diffstat (limited to 'test/runner')
-rw-r--r-- | test/runner/defs.bzl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/runner/defs.bzl b/test/runner/defs.bzl index 2d64934b0..032ebd04e 100644 --- a/test/runner/defs.bzl +++ b/test/runner/defs.bzl @@ -62,7 +62,8 @@ def _syscall_test( overlay = False, add_uds_tree = False, vfs2 = False, - fuse = False): + fuse = False, + debug = True): # Prepend "runsc" to non-native platform names. full_platform = platform if platform == "native" else "runsc_" + platform @@ -111,6 +112,8 @@ def _syscall_test( "--add-uds-tree=" + str(add_uds_tree), "--vfs2=" + str(vfs2), "--fuse=" + str(fuse), + "--strace=" + str(debug), + "--debug=" + str(debug), ] # Call the rule above. @@ -134,6 +137,7 @@ def syscall_test( add_hostinet = False, vfs2 = True, fuse = False, + debug = True, tags = None): """syscall_test is a macro that will create targets for all platforms. |