Skip to content

Commit

Permalink
Podman 3 doesn't return jsonl for {{json .}}, podman 4 does
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Mar 2, 2024
1 parent 04c359b commit bdc6f85
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/unit/test_podman.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ def test_run():
c.remove()
with pytest.raises(PodmanCommandError) as exc:
c.reload()
assert "".join(exc.value.output).strip() == ""
# Podman 3 returns "[]" instead of ""
assert "".join(exc.value.output).strip() in ("[]", "")


def test_run_autoremove():
Expand All @@ -77,7 +78,8 @@ def test_run_autoremove():
sleep(3)
with pytest.raises(PodmanCommandError) as exc:
c.reload()
assert "".join(exc.value.output).strip() == ""
# Podman 3 returns "[]" instead of ""
assert "".join(exc.value.output).strip() in ("[]", "")


def test_run_detach_wait():
Expand All @@ -93,7 +95,8 @@ def test_run_detach_wait():
c.remove()
with pytest.raises(PodmanCommandError) as exc:
c.reload()
assert "".join(exc.value.output).strip() == ""
# Podman 3 returns "[]" instead of ""
assert "".join(exc.value.output).strip() in ("[]", "")


def test_run_detach_nostream():
Expand Down

0 comments on commit bdc6f85

Please sign in to comment.