From: Joel Rosdahl Date: Sun, 5 Jul 2020 17:05:04 +0000 (+0200) Subject: Enable verbose output from “test/run” if VERBOSE is set X-Git-Tag: v4.0~356 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=88f03a210f3da8c5c219158293c3fcec979470ed;p=thirdparty%2Fccache.git Enable verbose output from “test/run” if VERBOSE is set --- diff --git a/misc/build-in-docker b/misc/build-in-docker index c0c6ba031..53a7a9b30 100755 --- a/misc/build-in-docker +++ b/misc/build-in-docker @@ -48,5 +48,6 @@ docker run --rm \ --env NO_TEST="${NO_TEST:-}" \ --env SCAN_BUILD="${SCAN_BUILD:-}" \ --env SPECIAL="${SPECIAL:-}" \ + --env VERBOSE="${VERBOSE:-}" \ "$tag" \ /source/ci/build "$@" diff --git a/test/run b/test/run index 23254b6a8..e3bce0131 100755 --- a/test/run +++ b/test/run @@ -321,7 +321,7 @@ EOF CCACHE_COMPILE="$CCACHE $COMPILER" - if $VERBOSE; then + if $verbose; then printf "\n %s" "$CURRENT_TEST" else printf . @@ -523,8 +523,8 @@ else fi echo -VERBOSE=false -[ "$1" = "-v" ] && { VERBOSE=true; shift; } +[ -z "${VERBOSE:-}" ] && verbose=false || verbose=true +[ "$1" = "-v" ] && { verbose=true; shift; } suites="$*" if [ -z "$suites" ]; then