public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Anton Mikanovich <amikan@ilbers.de>
To: isar-users@googlegroups.com
Cc: Anton Mikanovich <amikan@ilbers.de>
Subject: [PATCH v3 7/7] CI: Add timeout setting to ci_build
Date: Wed, 16 Mar 2022 10:16:47 +0300	[thread overview]
Message-ID: <20220316071647.8919-8-amikan@ilbers.de> (raw)
In-Reply-To: <20220316071647.8919-1-amikan@ilbers.de>

Migrate this option from vm_moke_test.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 scripts/ci_build.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh
index 41257cb..2513f1a 100755
--- a/scripts/ci_build.sh
+++ b/scripts/ci_build.sh
@@ -53,6 +53,8 @@ show_help() {
     echo "    -q, --quiet              suppress verbose bitbake output."
     echo "    -r, --repro              enable use of cached base repository."
     echo "    -n, --norun              do not execute QEMU run tests."
+    echo "    -t, --timeout SEC        specify time in seconds to wait before stop QEMU."
+    echo "                             The default is: 300"
     echo "    --help                   display this message and exit."
     echo
     echo "Exit status:"
@@ -63,6 +65,7 @@ show_help() {
 TAGS="full"
 CROSS_BUILD="0"
 QUIET="0"
+TIMEOUT=300
 
 # Parse command line to get user configuration
 while [ $# -gt 0 ]
@@ -104,6 +107,10 @@ do
     -n|--norun)
         NORUN="1"
         ;;
+    -t|--timeout)
+        TIMEOUT=$2
+        shift
+        ;;
     *)
         echo "error: invalid parameter '$key', please try '--help' to get list of supported parameters"
         exit $ES_BUG
@@ -137,4 +144,4 @@ set -x
 
 avocado $VERBOSE run "$TESTSUITE_DIR/citest.py" \
     -t $TAGS --test-runner=runner --disable-sysinfo \
-    -p quiet=$QUIET -p cross=$CROSS_BUILD
+    -p quiet=$QUIET -p cross=$CROSS_BUILD -p time_to_wait=$TIMEOUT
-- 
2.17.1


  parent reply	other threads:[~2022-03-16  7:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-16  7:16 [PATCH v3 0/7] Unify build and run test cases Anton Mikanovich
2022-03-16  7:16 ` [PATCH v3 1/7] CI: Reorganize testsuite folders Anton Mikanovich
2022-03-16  7:16 ` [PATCH v3 2/7] CI: Migrate all tests to one location Anton Mikanovich
2022-03-16  7:16 ` [PATCH v3 3/7] CI: Adopt vm_start test logging Anton Mikanovich
2022-03-16  7:16 ` [PATCH v3 4/7] CI: Do not run QEMU start tests from Gitlab Anton Mikanovich
2022-03-16  7:16 ` [PATCH v3 5/7] CI: Rename build_test.py to citest.py Anton Mikanovich
2022-03-16  7:16 ` [PATCH v3 6/7] CI: Change QEMU boot logs format Anton Mikanovich
2022-03-16  7:16 ` Anton Mikanovich [this message]
2022-03-23  7:00 ` [PATCH v3 0/7] Unify build and run test cases Anton Mikanovich

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=20220316071647.8919-8-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