Fix: check binding test cases failing and some common improvement

Signed-off-by: eduardo.valentin@ti.com
Signed-off-by: Amit Daniel Kachhap <amit.kachhap@linaro.org>
diff --git a/include/thermal_functions.sh b/include/thermal_functions.sh
index 692529c..5b60698 100644
--- a/include/thermal_functions.sh
+++ b/include/thermal_functions.sh
@@ -124,7 +124,7 @@
     shift 2
 
     log_begin "checking $descr"
-    if [ $trip_point > $trip_point_max ]; then
+    if [ $trip_point_val -ge $trip_point_max ]; then
         log_end "fail"
         return 1
     fi