MCPcopy Index your code
hub / github.com/moby/moby / TestRunExitCodeOne

Method TestRunExitCodeOne

integration-cli/docker_cli_run_test.go:103–107  ·  view source on GitHub ↗

the exit code should be 1

(c *testing.T)

Source from the content-addressed store, hash-verified

101
102// the exit code should be 1
103func (s *DockerCLIRunSuite) TestRunExitCodeOne(c *testing.T) {
104 _, exitCode, err := dockerCmdWithError("run", "busybox", "false")
105 assert.ErrorContains(c, err, "")
106 assert.Equal(c, exitCode, 1)
107}
108
109// it should be possible to pipe in data via stdin to a process running in a container
110func (s *DockerCLIRunSuite) TestRunStdinPipe(c *testing.T) {

Callers

nothing calls this directly

Calls 2

dockerCmdWithErrorFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected