[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 34/35] Auto-import Docker support files
From: |
Taylor Simpson |
Subject: |
[PATCH v6 34/35] Auto-import Docker support files |
Date: |
Thu, 7 Jan 2021 22:29:05 -0600 |
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:
_copy_with_mkdir(filename, docker_dir)
cksum += [(filename, _file_checksum(filename))]
--
2.7.4
- [PATCH v6 24/35] Hexagon (target/hexagon) macros, (continued)
- [PATCH v6 24/35] Hexagon (target/hexagon) macros, Taylor Simpson, 2021/01/07
- [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 <=
[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