diff options
author | Sanjay Singh Rawat <sanjay.rawat@linaro.org> | 2013-12-15 13:30:37 +0530 |
---|---|---|
committer | Sanjay Singh Rawat <sanjay.rawat@linaro.org> | 2013-12-15 15:43:26 +0530 |
commit | c7af87bdbce4a0105663f19b21b2560fc2cadec7 (patch) | |
tree | aacf2ab593ce3af3e8cdc4d2da466e48d04cbe9d /cpuidle | |
parent | 7c440a6fda2c02f4d6a3598c2a2c202ca1afd227 (diff) |
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>
Diffstat (limited to 'cpuidle')
-rwxr-xr-x | cpuidle/cpuidle_02.sh | 2 | ||||
-rwxr-xr-x | cpuidle/cpuidle_03.sh | 4 | ||||
-rw-r--r-- | cpuidle/cpuidle_04.sh | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/cpuidle/cpuidle_02.sh b/cpuidle/cpuidle_02.sh index 8d4b476..e604a8b 100755 --- a/cpuidle/cpuidle_02.sh +++ b/cpuidle/cpuidle_02.sh @@ -29,7 +29,7 @@ source ../include/functions.sh CPUIDLE_KILLER=./cpuidle_killer -if [ $(id -u) != 0 ]; then +if [ $(id -u) -ne 0 ]; then log_skip "run as non-root" exit 0 fi diff --git a/cpuidle/cpuidle_03.sh b/cpuidle/cpuidle_03.sh index 251ee3e..b07bc89 100755 --- a/cpuidle/cpuidle_03.sh +++ b/cpuidle/cpuidle_03.sh @@ -29,7 +29,7 @@ source ../include/functions.sh CPUIDLE_KILLER=./cpuidle_killer -if [ $(id -u) != 0 ]; then +if [ $(id -u) -ne 0 ]; then log_skip "run as non-root" exit 0 fi @@ -49,7 +49,7 @@ check_cpuidle_kill() { check "cpuidle program runs successfully (120 secs)" "./$CPUIDLE_KILLER" } -if [ $(id -u) != 0 ]; then +if [ $(id -u) -ne 0 ]; then log_skip "run as non-root" exit 0 fi diff --git a/cpuidle/cpuidle_04.sh b/cpuidle/cpuidle_04.sh index 7ec12d3..1688873 100644 --- a/cpuidle/cpuidle_04.sh +++ b/cpuidle/cpuidle_04.sh @@ -27,7 +27,7 @@ source ../include/functions.sh CPUIDLE_STATS=./cpuidle_stats -if [ $(id -u) != 0 ]; then +if [ $(id -u) -ne 0 ]; then log_skip "run as non-root" exit 0 fi |