public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Uladzimir Bely <ubely@ilbers.de>
To: isar-users@googlegroups.com
Subject: [PATCH 1/2] testsuite: Allow setting SSTATE_DIR and DL_DIR from environment
Date: Tue, 19 Sep 2023 06:55:12 +0200	[thread overview]
Message-ID: <20230919045513.20298-2-ubely@ilbers.de> (raw)
In-Reply-To: <20230919045513.20298-1-ubely@ilbers.de>

If the test doesn't use custom value of `sstate_dir` and `dl_dir` in
it's `configure` function, first try to set them to SSTATE_DIR and
DL_DIR values taken from the environment.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
 testsuite/cibuilder.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py
index 9c9f5a03..d62e2b73 100755
--- a/testsuite/cibuilder.py
+++ b/testsuite/cibuilder.py
@@ -80,8 +80,12 @@ class CIBuilder(Test):
         quiet = bool(int(self.params.get('quiet', default=1)))
 
         # set those to "" to not set dir value but use system default
+        if dl_dir is None:
+            dl_dir = os.getenv('DL_DIR')
         if dl_dir is None:
             dl_dir = os.path.join(isar_root, 'downloads')
+        if sstate_dir is None:
+            sstate_dir = os.getenv('SSTATE_DIR')
         if sstate_dir is None:
             sstate_dir = os.path.join(isar_root, 'sstate-cache')
         if ccache_dir is None:
-- 
2.20.1


  reply	other threads:[~2023-09-19  4:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-19  4:55 [PATCH 0/2] testsuite: Add control on SSTATE_DIR and DL_DIR Uladzimir Bely
2023-09-19  4:55 ` Uladzimir Bely [this message]
2023-09-19  4:55 ` [PATCH 2/2] testsuite: Allow to enable sstate globally Uladzimir Bely
2023-09-22  4:34 ` [PATCH 0/2] testsuite: Add control on SSTATE_DIR and DL_DIR Uladzimir Bely

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=20230919045513.20298-2-ubely@ilbers.de \
    --to=ubely@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