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/cpufreq/cpufreq_06.sh b/cpufreq/cpufreq_06.sh
index bfd38c9..25c473e 100755
--- a/cpufreq/cpufreq_06.sh
+++ b/cpufreq/cpufreq_06.sh
@@ -37,7 +37,7 @@
set_frequency $cpu $freq
result=$($CPUCYCLE $cpu)
- if [ $? != 0 ]; then
+ if [ $? -ne 0 ]; then
return 1
fi
@@ -101,7 +101,7 @@
for_each_frequency $cpu check_freq_deviation
}
-if [ $(id -u) != 0 ]; then
+if [ $(id -u) -ne 0 ]; then
log_skip "run as non-root"
exit 0
fi