Add runsc logs to test results
PiperOrigin-RevId: 230850177 Change-Id: I34eb24e8ff8dd9ce3e7f5eb2dc2ee58eeac49f07
This commit is contained in:
parent
b5088ba59c
commit
cc99520753
|
@ -168,6 +168,10 @@ func runTestCaseRunsc(testBin string, tc gtest.TestCase, t *testing.T) {
|
||||||
if *strace {
|
if *strace {
|
||||||
args = append(args, "-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
|
// Current process doesn't have CAP_SYS_ADMIN, create user namespace and run
|
||||||
// as root inside that namespace to get it.
|
// as root inside that namespace to get it.
|
||||||
args = append(args, "run", "--bundle", bundleDir, id)
|
args = append(args, "run", "--bundle", bundleDir, id)
|
||||||
|
|
Loading…
Reference in New Issue