Skip to content

Commit 625445f

Browse files
committed
test for run -td
Signed-off-by: zzzzzzzzzy9 <[email protected]>
1 parent fe688ce commit 625445f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cmd/nerdctl/container/container_run_linux_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,18 @@ func TestRunTTY(t *testing.T) {
364364
},
365365
Expected: test.Expects(expect.ExitCodeGenericFail, nil, nil),
366366
},
367+
{
368+
Description: "stty with -td",
369+
Cleanup: func(data test.Data, helpers test.Helpers) {
370+
helpers.Ensure("rm", "-f", data.Identifier())
371+
},
372+
Command: func(data test.Data, helpers test.Helpers) test.TestableCommand {
373+
cmd := helpers.Command("run", "-td", data.Identifier(), "stty")
374+
cmd.WithPseudoTTY()
375+
return cmd
376+
},
377+
Expected: test.Expects(0, nil, nil),
378+
},
367379
}
368380
}
369381

0 commit comments

Comments
 (0)