(t *testing.T)
| 49 | } |
| 50 | |
| 51 | func TestUpExitCodeFrom(t *testing.T) { |
| 52 | c := NewParallelCLI(t) |
| 53 | const projectName = "e2e-exit-code-from" |
| 54 | |
| 55 | res := c.RunDockerComposeCmdNoCheck(t, "-f", "fixtures/start-fail/start-depends_on-long-lived.yaml", "--project-name", projectName, "up", "--menu=false", "--exit-code-from=failure", "failure") |
| 56 | res.Assert(t, icmd.Expected{ExitCode: 42}) |
| 57 | |
| 58 | c.RunDockerComposeCmd(t, "--project-name", projectName, "down", "--remove-orphans") |
| 59 | } |
| 60 | |
| 61 | func TestUpExitCodeFromContainerKilled(t *testing.T) { |
| 62 | c := NewParallelCLI(t) |
nothing calls this directly
no test coverage detected