From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 7203376969598107648 X-Received: by 2002:a25:ed0c:0:b0:a09:314f:a3ef with SMTP id k12-20020a25ed0c000000b00a09314fa3efmr1783958ybh.12.1677166904119; Thu, 23 Feb 2023 07:41:44 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a81:ac2:0:b0:52e:c2d1:c1dd with SMTP id 185-20020a810ac2000000b0052ec2d1c1ddls5554049ywk.11.-pod-prod-gmail; Thu, 23 Feb 2023 07:41:43 -0800 (PST) X-Google-Smtp-Source: AK7set/kpec9yLdnRQQ0uueNk4PRTk5ciNUQiMFKgN+AugEcdPLUvIeCMv8za03SiFcQFjkvU4L4 X-Received: by 2002:a81:7d89:0:b0:536:cafd:7ef with SMTP id y131-20020a817d89000000b00536cafd07efmr10609363ywc.36.1677166903418; Thu, 23 Feb 2023 07:41:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677166903; cv=none; d=google.com; s=arc-20160816; b=0nIGWFvpTp0bdS43G8DY8Lw2rOddJzkAu+gbH8uEWbpi4ShB2pZWjpZjxKNOgVngj0 4qAuX2gGe+FMUx0bovC+vQw+xhlX9Xv0vFvDDI5awdfLgbtdHvsGleXi3+eTiq4woctU 35jXTVvjMxEfK0GrxlZOTTM0bsAljaRZ+i1zMp4gHyUl0cpJPxcS1Nl98QeW3Ni99FAU Uo2E1JYaMrdPMrgjv5nSqIF6Sm2m7+rbhu8KoDgzgIBrg41q058+H4YoqHDLcw32tdKa 3eQZBqNCInuano8wwCm+8PJLC3PWlI+4hUW8WKwAwNIoKeZV7PeBRDdxdWf5zNy8bJlw LwOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=4rNDbH0OEkRPHlGTZCRzara04Vue8Be09u9VAjZZDho=; b=bHMTtmGCcSkdOH/Aq/xYjjnjEUhdukfgd4J77OFMMitocPZMDePUGNC20ZxnTUCqWQ ct9D2ZazmZ0W7FXHijxVKoAX902XGNJ6lrOEgklwVU9+OqUDRaeIHvG1NGQ18++uLVnA w3Vmxe5K83I/1l9CTSsnSAnSApQcPtsBhhMHuOXZNSXduHjPAnK3p6XnqiqxSphpHD/k AtcTdqYN2MT+R/1F8GScoiBv5FUUbax9JothyVGcK/L3Fu/ysRnthO/LusjUbeeki4Em PXwt7jYAJr1ZSvKMvbpGQlUwsljSMtNFYU4uaUcO9BxPs+piFreefKVh/3CEF7U0S2+N /YDQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Return-Path: Received: from shymkent.ilbers.de (shymkent.ilbers.de. [85.214.156.166]) by gmr-mx.google.com with ESMTPS id 23-20020a811717000000b0053421bb7e79si626929ywx.1.2023.02.23.07.41.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Feb 2023 07:41:43 -0800 (PST) Received-SPF: pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) client-ip=85.214.156.166; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of amikan@ilbers.de designates 85.214.156.166 as permitted sender) smtp.mailfrom=amikan@ilbers.de Received: from user-B660.. ([85.254.74.12]) (authenticated bits=0) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPSA id 31NFfWLR020691 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Feb 2023 16:41:41 +0100 From: Anton Mikanovich To: isar-users@googlegroups.com Cc: Anton Mikanovich Subject: [PATCH 06/11] CI: Make quite option to be set by default Date: Thu, 23 Feb 2023 17:41:26 +0200 Message-Id: <20230223154131.132362-7-amikan@ilbers.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230223154131.132362-1-amikan@ilbers.de> References: <20230223154131.132362-1-amikan@ilbers.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-TUID: BJ2Zpec0wmYp It looks like nobody run bitbake with additional verbose during normal testsuite operation, so set non verbose output ("quite") to be default one. Verbose output still can be enabled by adding "-p quite=0" directly to avocado command. Signed-off-by: Anton Mikanovich --- .gitlab-ci.yml | 6 +++--- scripts/ci_build.sh | 7 ++----- testsuite/README.md | 4 ++-- testsuite/cibuilder.py | 2 +- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f9235fc..eb38be5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,14 +27,14 @@ dev-ci: except: - schedules script: - - scripts/ci_build.sh -q -T dev + - scripts/ci_build.sh -T dev fast-ci: <<: *common-build only: - schedules script: - - scripts/ci_build.sh -q -T fast + - scripts/ci_build.sh -T fast full-ci: <<: *common-build @@ -44,7 +44,7 @@ full-ci: - PREVIOUS_SHA="$(cat .CI_COMMIT_SHA || true)" - if [ "$CI_COMMIT_SHA" != "$PREVIOUS_SHA" ]; then echo "$CI_COMMIT_SHA" > .CI_COMMIT_SHA; - scripts/ci_build.sh -q -T full; + scripts/ci_build.sh -T full; fi cache: key: "$CI_COMMIT_REF_SLUG" diff --git a/scripts/ci_build.sh b/scripts/ci_build.sh index 9f62db5..fcac180 100755 --- a/scripts/ci_build.sh +++ b/scripts/ci_build.sh @@ -50,7 +50,6 @@ show_help() { echo " the tests will be started in current path." echo " -d, --debug enable debug bitbake output." echo " -T, --tags specify basic avocado tags." - echo " -q, --quiet suppress verbose bitbake output." echo " -n, --norun do not execute QEMU run tests." echo " --help display this message and exit." echo @@ -59,8 +58,6 @@ show_help() { echo " 3 if invalid parameters are passed." } -QUIET="0" - # Parse command line to get user configuration while [ $# -gt 0 ] do @@ -88,7 +85,7 @@ do echo "warning: deprecated parameter '$key', consider using '-T fast' instead" ;; -q|--quiet) - QUIET="1" + echo "warning: deprecated parameter '$key', it is applied by default" ;; -n|--norun) NORUN="1" @@ -151,4 +148,4 @@ set -x avocado ${VERBOSE} run "${TESTSUITE_DIR}/citest.py" \ -t "${TAGS}" ${PARALLEL} --disable-sysinfo \ - -p quiet="${QUIET}" ${TIMEOUT} + ${TIMEOUT} diff --git a/testsuite/README.md b/testsuite/README.md index 10fbd79..c9d5862 100644 --- a/testsuite/README.md +++ b/testsuite/README.md @@ -27,13 +27,13 @@ $ avocado run ../testsuite/citest.py -t single --max-parallel-tasks=1 -p machine ## Fast build test ``` -$ avocado run ../testsuite/citest.py -t fast --max-parallel-tasks=1 -p quiet=1 +$ avocado run ../testsuite/citest.py -t fast --max-parallel-tasks=1 ``` ## Full build test ``` -$ avocado run ../testsuite/citest.py -t full --max-parallel-tasks=1 -p quiet=1 +$ avocado run ../testsuite/citest.py -t full --max-parallel-tasks=1 ``` ## Fast boot test diff --git a/testsuite/cibuilder.py b/testsuite/cibuilder.py index 65eeb4b..0a07bf0 100755 --- a/testsuite/cibuilder.py +++ b/testsuite/cibuilder.py @@ -64,7 +64,7 @@ class CIBuilder(Test): self.check_init() # get parameters from avocado cmdline - quiet = bool(int(self.params.get('quiet', default=0))) + quiet = bool(int(self.params.get('quiet', default=1))) if dl_dir is None: dl_dir = os.path.join(isar_root, 'downloads') -- 2.34.1