Skip to content

Commit ffcdeff

Browse files
Add the current component name to msg output and the final report
1 parent 81b96ed commit ffcdeff

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/scripts/all.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,16 @@ trap 'fatal_signal TERM' TERM
229229

230230
msg()
231231
{
232+
if [ -n "${current_component:-}" ]; then
233+
current_section="${current_component#component_}: $1"
234+
else
235+
current_section="$1"
236+
fi
232237
echo ""
233238
echo "******************************************************************"
234-
echo "* $1 "
239+
echo "* $current_section "
235240
printf "* "; date
236241
echo "******************************************************************"
237-
current_section=$1
238242
}
239243

240244
armc6_build_test()
@@ -1238,6 +1242,7 @@ run_component () {
12381242
if [ $ALL_EXCEPT -ne 0 ] && component_is_excluded "$1"; then
12391243
return
12401244
fi
1245+
current_component="$1"
12411246
"$@"
12421247
cleanup
12431248
}

0 commit comments

Comments
 (0)