We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
run
1 parent 256b51c commit c1ca916Copy full SHA for c1ca916
tests/integration/build_fail_multi/test_podman_compose_build_fail_multi.py
@@ -51,3 +51,26 @@ def test_push_command_fail(self) -> None:
51
compose_yaml_path(),
52
"down",
53
])
54
+
55
+ def test_run_command_fail(self) -> None:
56
+ # test that run command is able to return other than "0" return code
57
+ try:
58
+ output, error = self.run_subprocess_assert_returncode(
59
+ [
60
+ podman_compose_path(),
61
+ "-f",
62
+ compose_yaml_path(),
63
+ "run",
64
+ "bad",
65
+ ],
66
+ expected_returncode=125,
67
+ )
68
+ self.assertIn("RUN false", str(output))
69
+ self.assertIn("while running runtime: exit status 1", str(error))
70
+ finally:
71
+ self.run_subprocess_assert_returncode([
72
73
74
75
+ "down",
76
+ ])
0 commit comments