@@ -49,7 +49,7 @@ swtpm_start() {
local swtpm="$(which tpm_server)"
if [ -z ${swtpm} ]; then
- echo "SKIP: Softare TPM (tpm_server) not found"
+ echo $CYAN"SKIP: Softare TPM (tpm_server) not found"$NORM
return $SKIP
fi
@@ -68,7 +68,7 @@ swtpm_start() {
# Initialize the software TPM using the sample binary_bios_measurements log.
swtpm_init() {
if [ ! -f ${TSSDIR}/tssstartup ] || [ ! -f ${TSSDIR}/tsseventextend ]; then
- echo "SKIP: tssstartup and tsseventextend needed for test"
+ echo $CYAN"SKIP: tssstartup and tsseventextend needed for test"$NORM
return $SKIP
fi
@@ -108,7 +108,7 @@ check() {
echo "INFO: Calculating the boot_aggregate (PCRs 0 - 7) for multiple banks"
bootaggr=$(evmctl ima_boot_aggregate)
if [ $? -ne 0 ]; then
- echo "SKIP: evmctl ima_boot_aggregate: $bootaggr"
+ echo $CYAN"SKIP: evmctl ima_boot_aggregate: $bootaggr"$NORM
exit $SKIP
fi
@@ -120,11 +120,11 @@ check() {
echo "$hash"
fi
if grep -e "boot_aggregate$" -e "boot_aggregate.$" "${ASCII_RUNTIME_MEASUREMENTS}" | tail -n 1 | grep -q "${hash}"; then
- echo "SUCCESS: boot_aggregate ${hash} found"
+ echo $GREEN"SUCCESS: boot_aggregate ${hash} found"$NORM
return $OK
fi
done
- echo "FAILURE: boot_aggregate not found"
+ echo $RED"FAILURE: boot_aggregate not found"$NORM
return $FAIL
}
Use the "functions.sh" tty color scheme, which defines SKIP as CYAN. FAILURE: RED (31) SUCCESS: GREEN (32) SKIP: CYAN (36) Should VERBOSE or informational messages be color coded? Signed-off-by: Mimi Zohar <zohar@linux.ibm.com> --- tests/boot_aggregate.test | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)