Only output security options if there are any

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard
2016-09-07 11:14:49 -07:00
parent a4d1365bce
commit dd3d223a7e
2 changed files with 9 additions and 4 deletions

View File

@@ -33,10 +33,13 @@ func (s *DockerSuite) TestInfoEnsureSucceeds(c *check.C) {
"Storage Driver:",
"Volume:",
"Network:",
"Security Options:",
"Live Restore Enabled:",
}
if daemonPlatform == "linux" {
stringsToCheck = append(stringsToCheck, "Security Options:")
}
if DaemonIsLinux.Condition() {
stringsToCheck = append(stringsToCheck, "Runtimes:", "Default Runtime: runc")
}