[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 34/35] Auto-import Docker support files
From: |
Alex Bennée |
Subject: |
Re: [PATCH v6 34/35] Auto-import Docker support files |
Date: |
Tue, 12 Jan 2021 11:58:30 +0000 |
User-agent: |
mu4e 1.5.7; emacs 28.0.50 |
Taylor Simpson <tsimpson@quicinc.com> writes:
> From: Alessandro Di Federico <ale@rev.ng>
>
> Signed-off-by: Alessandro Di Federico <ale@rev.ng>
> ---
> tests/docker/docker.py | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/tests/docker/docker.py b/tests/docker/docker.py
> index 36b7868..d473566 100755
> --- a/tests/docker/docker.py
> +++ b/tests/docker/docker.py
> @@ -28,6 +28,7 @@ from io import StringIO, BytesIO
> from shutil import copy, rmtree
> from pwd import getpwuid
> from datetime import datetime, timedelta
> +from glob import glob
>
>
> FILTERED_ENV_NAMES = ['ftp_proxy', 'http_proxy', 'https_proxy']
> @@ -466,7 +467,8 @@ class BuildCommand(SubCommand):
> return 1
>
> # Is there a .pre file to run in the build context?
> - docker_pre = os.path.splitext(args.dockerfile)[0]+".pre"
> + basename = os.path.splitext(args.dockerfile)[0]
> + docker_pre = basename + ".pre"
> if os.path.exists(docker_pre):
> stdout = DEVNULL if args.quiet else None
> rc = subprocess.call(os.path.realpath(docker_pre),
> @@ -488,7 +490,9 @@ class BuildCommand(SubCommand):
> _copy_binary_with_libs(args.include_executable,
> qpath, docker_dir)
>
> - for filename in args.extra_files or []:
> + extra_files = args.extra_files or []
> + extra_files += glob(basename + ".*")
> + for filename in extra_files:
Hmm not so sure about this magic. What's wrong with the existing
--extra-files mechanism?
> _copy_with_mkdir(filename, docker_dir)
> cksum += [(filename, _file_checksum(filename))]
--
Alex Bennée
- [PATCH v6 27/35] Hexagon (target/hexagon) TCG for instructions with multiple definitions, (continued)
- [PATCH v6 27/35] Hexagon (target/hexagon) TCG for instructions with multiple definitions, Taylor Simpson, 2021/01/07
- [PATCH v6 28/35] Hexagon (target/hexagon) TCG for floating point instructions, Taylor Simpson, 2021/01/07
- [PATCH v6 25/35] Hexagon (target/hexagon) instruction classes, Taylor Simpson, 2021/01/07
- [PATCH v6 32/35] Hexagon build infrastructure, Taylor Simpson, 2021/01/07
- [PATCH v6 29/35] Hexagon (target/hexagon) translation, Taylor Simpson, 2021/01/07
- [PATCH v6 33/35] Add Dockerfile for hexagon, Taylor Simpson, 2021/01/07
- [PATCH v6 31/35] Hexagon (tests/tcg/hexagon) TCG tests, Taylor Simpson, 2021/01/07
- [PATCH v6 34/35] Auto-import Docker support files, Taylor Simpson, 2021/01/07
- Re: [PATCH v6 34/35] Auto-import Docker support files,
Alex Bennée <=
[PATCH v6 35/35] Add newline when generating Dockerfile, Taylor Simpson, 2021/01/07
Re: [PATCH v6 00/35] Hexagon patch series, no-reply, 2021/01/08
Re: [PATCH v6 00/35] Hexagon patch series, Alex Bennée, 2021/01/12