Skip to content

Commit cf1fe81

Browse files
committed
Fix tests/unit/test_app.py::test_extra_buildx_build_args
1 parent 7fc282e commit cf1fe81

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/unit/test_app.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
from tempfile import TemporaryDirectory
23
from unittest.mock import patch
34

@@ -57,7 +58,11 @@ def test_extra_buildx_build_args(repo_with_content):
5758

5859
args, kwargs = execute_cmd.call_args
5960
cmd = args[0]
60-
assert cmd[:3] == ["docker", "buildx", "build"]
61+
docker_host = os.environ.get("DOCKER_HOST")
62+
if docker_host and docker_host.find("podman") != -1:
63+
assert cmd[:3] == ["podman", "buildx", "build"]
64+
else:
65+
assert cmd[:3] == ["docker", "buildx", "build"]
6166
# make sure it's inserted before the end
6267
assert "--check" in cmd[:-1]
6368

0 commit comments

Comments
 (0)