summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2019-01-24 22:41:28 -0800
committerShentubot <shentubot@google.com>2019-01-24 22:42:39 -0800
commitcc995207531965b70bc1b812a70b91f242a92086 (patch)
tree7187ef48c3f9f414b2a81df1c47601d669d4e599
parentb5088ba59c4b6e6fe19a38e15a5472d36f80b397 (diff)
Add runsc logs to test results
PiperOrigin-RevId: 230850177 Change-Id: I34eb24e8ff8dd9ce3e7f5eb2dc2ee58eeac49f07
-rw-r--r--test/syscalls/syscall_test_runner.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/syscalls/syscall_test_runner.go b/test/syscalls/syscall_test_runner.go
index e8593ec73..e1fba637c 100644
--- a/test/syscalls/syscall_test_runner.go
+++ b/test/syscalls/syscall_test_runner.go
@@ -168,6 +168,10 @@ func runTestCaseRunsc(testBin string, tc gtest.TestCase, t *testing.T) {
if *strace {
args = append(args, "-strace")
}
+ if outDir, ok := syscall.Getenv("TEST_UNDECLARED_OUTPUTS_DIR"); ok {
+ args = append(args, "-debug-log", outDir+"/")
+ }
+
// Current process doesn't have CAP_SYS_ADMIN, create user namespace and run
// as root inside that namespace to get it.
args = append(args, "run", "--bundle", bundleDir, id)