From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH v1 1/4] CI: Enable downloads dir sharing
Date: Tue, 29 Nov 2022 14:43:41 +0300 [thread overview]
Message-ID: <20221129114344.19128-2-amikan@ilbers.de> (raw)
In-Reply-To: <20221129114344.19128-1-amikan@ilbers.de>
Test cases performed in different build dir now can share DL_DIR.
Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
testsuite/cibuilder.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py
index d5c83b22..a09b738a 100755
--- a/testsuite/cibuilder.py
+++ b/testsuite/cibuilder.py
@@ -54,7 +54,8 @@ class CIBuilder(Test):
def configure(self, compat_arch=True, cross=None, debsrc_cache=False,
container=False, ccache=False, sstate=False, offline=False,
- gpg_pub_key=None, wic_deploy_parts=False, **kwargs):
+ gpg_pub_key=None, wic_deploy_parts=False, dl_dir=None,
+ **kwargs):
# write configuration file and set bitbake_args
# can run multiple times per test case
self.check_init()
@@ -64,6 +65,9 @@ class CIBuilder(Test):
if cross is None:
cross = bool(int(self.params.get('cross', default=0)))
+ if dl_dir is None:
+ dl_dir = os.path.join(isar_root, 'downloads')
+
# get parameters from environment
distro_apt_premir = os.getenv('DISTRO_APT_PREMIRRORS')
@@ -78,6 +82,7 @@ class CIBuilder(Test):
f' sstate = {sstate}\n'
f' gpg_pub_key = {gpg_pub_key}\n'
f' wic_deploy_parts = {wic_deploy_parts}\n'
+ f' dl_dir = {dl_dir}\n'
f'===================================================')
# determine bitbake_args
@@ -113,6 +118,8 @@ class CIBuilder(Test):
if ccache:
f.write('USE_CCACHE = "1"\n')
f.write('CCACHE_TOP_DIR = "${TOPDIR}/ccache"\n')
+ if dl_dir:
+ f.write('DL_DIR = "%s"\n' % dl_dir)
# include ci_build.conf in local.conf
with open(self.build_dir + '/conf/local.conf', 'r+') as f:
--
2.17.1
next prev parent reply other threads:[~2022-11-29 11:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-29 11:43 [PATCH v1 0/4] Add developers test Anton Mikanovich
2022-11-29 11:43 ` Anton Mikanovich [this message]
2022-11-29 11:43 ` [PATCH v1 2/4] CI: Add IMAGE_INSTALL override Anton Mikanovich
2022-11-29 11:43 ` [PATCH v1 3/4] CI: Add developers test Anton Mikanovich
2022-11-29 11:43 ` [PATCH v1 4/4] CI: Remove duplicated target Anton Mikanovich
2022-11-29 12:57 ` [PATCH v1 0/4] Add developers test Moessbauer, Felix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221129114344.19128-2-amikan@ilbers.de \
--to=amikan@ilbers.de \
--cc=isar-users@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox