diff --git a/scripts/test-pmbw b/scripts/test-pmbw index a4f660c..32875fb 100755 --- a/scripts/test-pmbw +++ b/scripts/test-pmbw @@ -4,7 +4,7 @@ source scan-dmidecode source test-variables mkdir -pv $OUTPUT_DIR/pmbw -cd -v $OUTPUT_DIR/pmbw +cd $OUTPUT_DIR/pmbw MY_DATE=`date +%Y-%m-%d_%H-%M-%S` if [[ -f stats.txt ]] ; then mv -vf stats.txt stats.txt.old-$MY_DATE @@ -20,7 +20,9 @@ RES=$? ERRNO=$! if [[ $RES != '0' ]] ; then - echo "${RED}FAIL${OFF} pmbw exited abnormally with error code: $BLD$ERRNO$OFF"; + echo "${RES_FAIL} pmbw exited abnormally with error code: $BLD$ERRNO$OFF"; +else + echo "${RES_OK} pmbw finished successfully. Results in stats.txt" fi