Remove unnecessary fmt.Printf
Signed-off-by: Thomas Texier <sharkone@en-mousse.org> Upstream-commit: 2ea1febd9aafd94985a2430c35243e539fa29f53 Component: engine
This commit is contained in:
@@ -705,7 +705,6 @@ func TestExecWithPrivileged(t *testing.T) {
|
||||
|
||||
cmd := exec.Command(dockerBinary, "exec", "parent", "sh", "-c", "mknod /tmp/sda b 8 0")
|
||||
out, _, err := runCommandWithOutput(cmd)
|
||||
fmt.Printf("%s", out)
|
||||
if err == nil || !strings.Contains(out, "Operation not permitted") {
|
||||
t.Fatalf("exec mknod in --cap-drop=ALL container without --privileged should failed")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user