For HTML/XML reports, show improvements as BETTER (green).

No difference is reported as PASSED (light green),
and regressions as FAILED (red).

Change-Id: I9d37bcab237701edca9310847a3f69f86b07aa85
diff --git a/compare_tests b/compare_tests
index 4c72c6f..74da3be 100755
--- a/compare_tests
+++ b/compare_tests
@@ -116,15 +116,17 @@
 	done
 	${CONFIG_SHELL-/usr/bin/perl} ${my_path}/compare_dg_tests.pl -l --unstable-test=${my_path}/unstable-tests.txt ${unstable_target} $sum1 $sum2
 	ret=$?
-	if [ $ret -eq 2 ]; then
-		exit_status=`expr $exit_status + 1`
+	case $ret in
+	    2)
+		exit_status=`expr $exit_status + 2`
 		echo "# Regressions found"
-	else
-	    if [ $ret -eq 1 ]; then
+		;;
+	    1)
+		exit_status=`expr $exit_status + 1`
 		echo "# Improvements found"
-	    fi
-	fi
-	if [ $exit_status -ne 0 ]; then
+		;;
+	esac
+	if [ $ret -eq 2 ]; then
 		echo "# Regressions in $cmnsums common sum files found"
 	else
 		echo "# No regression found in $cmnsums common sum files"