From: Uladzimir Bely <ubely@ilbers.de>
To: isar-users@googlegroups.com
Subject: [PATCH 2/2] testsuite: Allow to enable sstate globally
Date: Tue, 19 Sep 2023 06:55:13 +0200 [thread overview]
Message-ID: <20230919045513.20298-3-ubely@ilbers.de> (raw)
In-Reply-To: <20230919045513.20298-1-ubely@ilbers.de>
By default, sstate cache is populated only, but not used during
the build (since `--no-setscene` bitbake param is passed by default).
Add `-S` (`--sstate`) option to ci_build.sh script in order to change
the default behaviour and allow sharing sstate cache between tests.
Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
scripts/ci_build.sh | 6 +++++-
testsuite/cibuilder.py | 3 +++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh
index 2fa5cccd..51ed3920 100755
--- a/scripts/ci_build.sh
+++ b/scripts/ci_build.sh
@@ -78,6 +78,10 @@ do
TAGS="$2"
shift
;;
+ -S|--sstate)
+ SSTATE="-p sstate=$2"
+ shift
+ ;;
-f|--fast)
# Start build for the reduced set of configurations
FAST="1"
@@ -143,4 +147,4 @@ set -x
avocado ${VERBOSE} run "${TESTSUITE_DIR}/citest.py" \
-t "${TAGS}" --max-parallel-tasks=1 --disable-sysinfo \
- ${TIMEOUT}
+ ${SSTATE} ${TIMEOUT}
diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py
index d62e2b73..1ff77332 100755
--- a/testsuite/cibuilder.py
+++ b/testsuite/cibuilder.py
@@ -79,6 +79,9 @@ class CIBuilder(Test):
# get parameters from avocado cmdline
quiet = bool(int(self.params.get('quiet', default=1)))
+ if not sstate:
+ sstate = bool(int(self.params.get('sstate', default=0)))
+
# set those to "" to not set dir value but use system default
if dl_dir is None:
dl_dir = os.getenv('DL_DIR')
--
2.20.1
next prev parent 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 ` [PATCH 1/2] testsuite: Allow setting SSTATE_DIR and DL_DIR from environment Uladzimir Bely
2023-09-19 4:55 ` Uladzimir Bely [this message]
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-3-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