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.
1 parent 7fc282e commit cf1fe81Copy full SHA for cf1fe81
tests/unit/test_app.py
@@ -1,3 +1,4 @@
1
+import os
2
from tempfile import TemporaryDirectory
3
from unittest.mock import patch
4
@@ -57,7 +58,11 @@ def test_extra_buildx_build_args(repo_with_content):
57
58
59
args, kwargs = execute_cmd.call_args
60
cmd = args[0]
- 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"]
66
# make sure it's inserted before the end
67
assert "--check" in cmd[:-1]
68
0 commit comments