summaryrefslogtreecommitdiffhomepage
path: root/runsc/boot
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2018-06-12 10:24:56 -0700
committerShentubot <shentubot@google.com>2018-06-12 10:25:55 -0700
commit48335318a23f4f536c395e602c0cd338c4c4e890 (patch)
treed3680a68b2409fefa2aff32625c5991e16e95335 /runsc/boot
parent41f766893ab804cd2d3ccfd782d97c022e987f79 (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/boot')
-rw-r--r--runsc/boot/config.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/runsc/boot/config.go b/runsc/boot/config.go
index d5dd400d1..c13ac150d 100644
--- a/runsc/boot/config.go
+++ b/runsc/boot/config.go
@@ -176,18 +176,10 @@ type Config struct {
// DisableSeccomp indicates whether seccomp syscall filters should be
// disabled. Pardon the double negation, but default to enabled is important.
DisableSeccomp bool
-
- // TestModeNoFlags indicates that the ToFlags method should return
- // empty. This should only be used in tests, since the test runner does
- // not know about all the flags.
- TestModeNoFlags bool
}
// ToFlags returns a slice of flags that correspond to the given Config.
func (c *Config) ToFlags() []string {
- if c.TestModeNoFlags {
- return nil
- }
return []string{
"--root=" + c.RootDir,
"--debug=" + strconv.FormatBool(c.Debug),