projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7af25f9
)
docker: let _copy_with_mkdir() sub_path argument be optional
author
Philippe Mathieu-Daudé
<f4bug@amsat.org>
Fri, 2 Jun 2017 18:56:07 +0000
(15:56 -0300)
committer
Alex Bennée
<alex.bennee@linaro.org>
Wed, 21 Jun 2017 14:01:48 +0000
(15:01 +0100)
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
tests/docker/docker.py
patch
|
blob
|
history
diff --git
a/tests/docker/docker.py
b/tests/docker/docker.py
index 8747f6a4404370239273b99bcdbbf7bdde4638aa..6ddc6e4c2a21c4a5eebfb3fc70ebcd89a34b29c4 100755
(executable)
--- a/
tests/docker/docker.py
+++ b/
tests/docker/docker.py
@@
-52,7
+52,7
@@
def _guess_docker_command():
raise Exception("Cannot find working docker command. Tried:\n%s" % \
commands_txt)
-def _copy_with_mkdir(src, root_dir, sub_path):
+def _copy_with_mkdir(src, root_dir, sub_path
='.'
):
"""Copy src into root_dir, creating sub_path as needed."""
dest_dir = os.path.normpath("%s/%s" % (root_dir, sub_path))
try: