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 087c332 commit 07ef92eCopy full SHA for 07ef92e
tests/unit/test_app.py
@@ -78,6 +78,20 @@ def test_local_dir_image_name(repo_with_content):
78
)
79
80
81
+def test_extra_buildx_build_args(repo_with_content):
82
+ upstream, sha1 = repo_with_content
83
+ argv = ['--DockerEngine.extra_buildx_build_args=--check', upstream]
84
+ app = make_r2d(argv)
85
+ with patch("repo2docker.docker.execute_cmd") as execute_cmd:
86
+ app.build()
87
+
88
+ args, kwargs = execute_cmd.call_args
89
+ cmd = args[0]
90
+ assert cmd[:3] == ["docker", "buildx", "build"]
91
+ # make sure it's inserted before the end
92
+ assert "--check" in cmd[:-1]
93
94
95
def test_run_kwargs(repo_with_content):
96
upstream, sha1 = repo_with_content
97
argv = [upstream]
0 commit comments