@@ -6,7 +6,7 @@ Background:
66 services:
77 should_fail:
88 image: alpine
9- command: ls /does_not_exist
9+ command: ['sh', '-c', 'exit 123']
1010 sleep: # will be killed
1111 image: alpine
1212 command: ping localhost
@@ -15,15 +15,22 @@ Background:
1515
1616Scenario : Cascade stop
1717 When I run "compose up --abort-on-container-exit"
18- Then the output contains "should_fail-1 exited with code 1 "
18+ Then the output contains "should_fail-1 exited with code 123 "
1919 And the output contains "Aborting on container exit..."
20- And the exit code is 1
20+ And the exit code is 123
2121
2222Scenario : Exit code from
23- When I run "compose up --exit-code-from sleep "
24- Then the output contains "should_fail-1 exited with code 1 "
23+ When I run "compose up --exit-code-from should_fail "
24+ Then the output contains "should_fail-1 exited with code 123 "
2525 And the output contains "Aborting on container exit..."
26- And the exit code is 143
26+ And the exit code is 123
27+
28+ # TODO: this is currently not working propagating the exit code properly
29+ #Scenario: Exit code from (cascade stop)
30+ # When I run "compose up --exit-code-from sleep"
31+ # Then the output contains "should_fail-1 exited with code 123"
32+ # And the output contains "Aborting on container exit..."
33+ # And the exit code is 143
2734
2835Scenario : Exit code from unknown service
2936 When I run "compose up --exit-code-from unknown"
0 commit comments