MCPcopy Create free account
hub / github.com/docker/compose / TestUpExitCodeFrom

Function TestUpExitCodeFrom

pkg/e2e/compose_up_test.go:51–59  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

49}
50
51func 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
61func TestUpExitCodeFromContainerKilled(t *testing.T) {
62 c := NewParallelCLI(t)

Callers

nothing calls this directly

Calls 3

NewParallelCLIFunction · 0.85
RunDockerComposeCmdMethod · 0.80

Tested by

no test coverage detected