Skip to content

Commit 7efb818

Browse files
authored
Merge pull request #4070 from zzzzzzzzzy9/test-run-td
test for nerdctl run -t -d
2 parents fe688ce + 625445f commit 7efb818

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)