summaryrefslogtreecommitdiff
path: root/tests/docker
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2017-06-02 15:56:07 -0300
committerAlex Bennée <alex.bennee@linaro.org>2017-06-21 15:01:48 +0100
commit2499ee9fada75a9581b0bbe8ffc7637c7db2f306 (patch)
treec1d1deac1add00383ab4f0d23056c996b5ea5593 /tests/docker
parent7af25f9f6a35ff18e7a20401c4acca77572ee9e4 (diff)
downloadqemu-2499ee9fada75a9581b0bbe8ffc7637c7db2f306.zip
docker: let _copy_with_mkdir() sub_path argument be optional
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>
Diffstat (limited to 'tests/docker')
-rwxr-xr-xtests/docker/docker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/docker/docker.py b/tests/docker/docker.py
index 8747f6a440..6ddc6e4c2a 100755
--- 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: