Skip to content

Commit

Permalink
fix for podman
Browse files Browse the repository at this point in the history
  • Loading branch information
ivotron committed Aug 13, 2020
1 parent 239f964 commit 6c1eba0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/test_runner_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ def test_stop_running_tasks(self):
c2_status_cmd = status_cmd + [c2]
_, _, c1_status = HostRunner._exec_cmd(c1_status_cmd, logging=False)
_, _, c2_status = HostRunner._exec_cmd(c2_status_cmd, logging=False)
self.assertEqual(c1_status, "exited\n")
self.assertEqual(c2_status, "exited\n")
self.assertEqual(c1_status, "exited")
self.assertEqual(c2_status, "exited")

@unittest.skipIf(os.environ.get("ENGINE", "docker") != "podman", "ENGINE != podman")
def test_find_container(self):
Expand Down Expand Up @@ -275,7 +275,7 @@ def test_create_container(self):
c,
]
__, _, c_status = HostRunner._exec_cmd(c_status_cmd, logging=False)
self.assertEqual(c_status, "configured\n")
self.assertEqual(c_status, "configured")
cmd = ["podman", "container", "rm", c]
HostRunner._exec_cmd(cmd, logging=False)
step = Box(
Expand All @@ -298,7 +298,7 @@ def test_create_container(self):
c,
]
__, _, c_status = HostRunner._exec_cmd(c_status_cmd, logging=False)
self.assertEqual(c_status, "configured\n")
self.assertEqual(c_status, "configured")
cmd = ["podman", "container", "rm", c]
HostRunner._exec_cmd(cmd, logging=False)

Expand Down

1 comment on commit 6c1eba0

@edeediong
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Ivo! Were these failing?

Please sign in to comment.