Skip to content

Commit

Permalink
docker: let _copy_with_mkdir() sub_path argument be optional
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
philmd authored and stsquad committed Jun 21, 2017
1 parent 7af25f9 commit 2499ee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/docker/docker.py
Expand Up @@ -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:
Expand Down

0 comments on commit 2499ee9

Please sign in to comment.