change options for numerical comparision
use directory test option for cpufreq test and add warning message
for hotplug 07 test
Signed-off-by: Carlos Hernandez <ceh@ti.com>
Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
diff --git a/include/thermal_functions.sh b/include/thermal_functions.sh
index 8a4d627..1f1991f 100644
--- a/include/thermal_functions.sh
+++ b/include/thermal_functions.sh
@@ -181,7 +181,7 @@
local flag=0
for cpu in $(ls $CPU_PATH | grep "cpu[0-9].*"); do
- if [ $before_freq_list[$index] != $afterf_req_list[$index] ] ; then
+ if [ $before_freq_list[$index] -ne $afterf_req_list[$index] ] ; then
flag=1
fi
index=$((index + 1))
@@ -275,7 +275,7 @@
return
fi
- if [ "$gpu_pid" != 0 ]; then
+ if [ "$gpu_pid" -ne 0 ]; then
kill -9 $gpu_pid
fi
}