Align test results output
Add padding to name of test to align the PASS/SKIP/FAIL results
as a single column for better readability.
Change-Id: I0f46266ceebb91d17f68de77775909ad691b0884
diff --git a/kvm-unit-tests/run_test.sh b/kvm-unit-tests/run_test.sh
index 0fbadda..8d90fe3 100755
--- a/kvm-unit-tests/run_test.sh
+++ b/kvm-unit-tests/run_test.sh
@@ -30,6 +30,8 @@
CPU_VHE="max"
CPU_NVHE="cortex-a53"
+RESULT_ALIGN=40
+
function usage() {
cat <<EOF
@@ -153,6 +155,6 @@
EXIT_STATUS=1
fi
- echo -e "${DISPLAY_NAME}: ${RESULT}"
+ printf "%-${RESULT_ALIGN}s %s\n" "${DISPLAY_NAME}" "${RESULT}"
exit ${EXIT_STATUS}
fi