diff options
author | Fabricio Voznika <fvoznika@google.com> | 2018-06-12 10:24:56 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-06-12 10:25:55 -0700 |
commit | 48335318a23f4f536c395e602c0cd338c4c4e890 (patch) | |
tree | d3680a68b2409fefa2aff32625c5991e16e95335 /runsc/test/testutil | |
parent | 41f766893ab804cd2d3ccfd782d97c022e987f79 (diff) |
Enable debug logging in tests
Unit tests call runsc directly now, so all command line arguments
are valid. On the other hand, enabling debug in the test binary
doesn't affect runsc. It needs to be set in the config.
PiperOrigin-RevId: 200237706
Change-Id: I0b5922db17f887f58192dbc2f8dd2fd058b76ec7
Diffstat (limited to 'runsc/test/testutil')
-rw-r--r-- | runsc/test/testutil/testutil.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/runsc/test/testutil/testutil.go b/runsc/test/testutil/testutil.go index 1c8fd3ba2..9be4407e0 100644 --- a/runsc/test/testutil/testutil.go +++ b/runsc/test/testutil/testutil.go @@ -117,12 +117,12 @@ func SetupContainerInRoot(rootDir string, spec *specs.Spec) (bundleDir string, c } conf = &boot.Config{ - RootDir: rootDir, - Network: boot.NetworkNone, - // Don't add flags when calling subprocesses, since the test - // runner does not know about all the flags. We control the - // Config in the subprocess anyways, so it does not matter. - TestModeNoFlags: true, + Debug: true, + LogFormat: "text", + LogPackets: true, + Network: boot.NetworkNone, + RootDir: rootDir, + Strace: true, } return bundleDir, conf, nil |