summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-29 08:54:39 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-29 14:01:54 +0000
commite9c659cbcc8a78519895b5d9705636e8ffb3f0ae (patch)
treeefd18ba72e3ad0cc7116077ad246f2de274e658f
parentdd67a90ecc1a480b3d9dd44cccd59c94ff7d4c0d (diff)
downloadjenkins-scripts-e9c659cbcc8a78519895b5d9705636e8ffb3f0ae.tar.gz
tcwg-benchmark.sh: Improve verbosity handling
Change-Id: Iccb8a33379582f125c3cf3a767469fc619047a53
-rwxr-xr-xtcwg-benchmark.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh
index a962b53f..700872e9 100755
--- a/tcwg-benchmark.sh
+++ b/tcwg-benchmark.sh
@@ -2,7 +2,7 @@
# Clean: shellcheck -e 2001 ./tcwg-benchmark.sh
-set -eux
+set -eu
scripts=$(dirname "$0")
# shellcheck source=jenkins-helpers.sh
@@ -55,9 +55,11 @@ declare -g \
bench_container_tag="${bench_container_tag-bionic}"
toolchain_type="${toolchain_type-auto}"
prepare_board="${prepare_board-true}"
+verbose="${verbose-true}"
-# shellcheck source=jenkins-helpers.sh
-. $scripts/jenkins-helpers.sh
+if $verbose; then
+ set -x
+fi
prepare_toolchain ()
{