diff --git a/tests/integration/exit-from/__init__.py b/tests/integration/exit-from/__init__.py new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/tests/integration/exit-from/__init__.py @@ -0,0 +1 @@ + diff --git a/tests/integration/test_podman_compose_exit_from.py b/tests/integration/exit-from/test_podman_compose_exit_from.py similarity index 77% rename from tests/integration/test_podman_compose_exit_from.py rename to tests/integration/exit-from/test_podman_compose_exit_from.py index 9d0117f..c380543 100644 --- a/tests/integration/test_podman_compose_exit_from.py +++ b/tests/integration/exit-from/test_podman_compose_exit_from.py @@ -52,3 +52,16 @@ class TestComposeExitFrom(unittest.TestCase, RunSubprocessMixin): compose_yaml_path(), "down", ]) + + def test_podman_compose_exit_from(self): + up_cmd = [ + "coverage", + "run", + podman_compose_path(), + "-f", + os.path.join(test_path(), "exit-from", "docker-compose.yaml"), + "up", + ] + + self.run_subprocess_assert_returncode(up_cmd + ["--exit-code-from", "sh1"], 1) + self.run_subprocess_assert_returncode(up_cmd + ["--exit-code-from", "sh2"], 2) diff --git a/tests/integration/test_podman_compose_tests.py b/tests/integration/test_podman_compose_tests.py index b12208b..8b1cecc 100644 --- a/tests/integration/test_podman_compose_tests.py +++ b/tests/integration/test_podman_compose_tests.py @@ -16,19 +16,6 @@ from tests.integration.test_utils import RunSubprocessMixin class TestPodmanCompose(unittest.TestCase, RunSubprocessMixin): - def test_exit_from(self): - up_cmd = [ - "coverage", - "run", - podman_compose_path(), - "-f", - os.path.join(test_path(), "exit-from", "docker-compose.yaml"), - "up", - ] - - self.run_subprocess_assert_returncode(up_cmd + ["--exit-code-from", "sh1"], 1) - self.run_subprocess_assert_returncode(up_cmd + ["--exit-code-from", "sh2"], 2) - def test_up_with_ports(self): up_cmd = [ "coverage",