From 11ddca6b748522b27f69bbcc9b5409431024c8b5 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 4 Dec 2018 12:49:28 +0100 Subject: [PATCH] Add the current component name to msg output and the final report --- tests/scripts/all.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index d2eb47deb..f3a1da1d1 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -223,12 +223,16 @@ trap 'fatal_signal TERM' TERM msg() { + if [ -n "${current_component:-}" ]; then + current_section="${current_component#component_}: $1" + else + current_section="$1" + fi echo "" echo "******************************************************************" - echo "* $1 " + echo "* $current_section " printf "* "; date echo "******************************************************************" - current_section=$1 } armc6_build_test() @@ -1017,6 +1021,7 @@ post_report () { # Run one component and clean up afterwards. run_component () { + current_component="$1" "$@" cleanup }