aboutsummaryrefslogtreecommitdiff
path: root/cpuidle
diff options
context:
space:
mode:
authorLisa Nguyen <lisa.nguyen@linaro.org>2015-01-26 17:33:03 -0800
committerLisa Nguyen <lisa.nguyen@linaro.org>2015-02-02 13:54:55 -0800
commitf62f354ef425827b396fc982f0044fdcaf51180d (patch)
tree038082eb6218951e91dd4a04e1fc66e952cbf5e3 /cpuidle
parent48a5791b7853175515710ac5084fbc712d080aef (diff)
Fix the syntax to call C programs
In PM-QA, there are external programs written in C (e.g. cpuidle_killer, uevent_reader) that run in the background while some scripts are being executed. However, remove the extra slash and period when it's not necessary and create variables to store the path of these programs. Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org> Signed-off-by: Lisa Nguyen <lisa.nguyen@linaro.org>
Diffstat (limited to 'cpuidle')
-rwxr-xr-xcpuidle/cpuidle_02.sh2
-rwxr-xr-xcpuidle/cpuidle_03.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/cpuidle/cpuidle_02.sh b/cpuidle/cpuidle_02.sh
index 61176d7..4242e24 100755
--- a/cpuidle/cpuidle_02.sh
+++ b/cpuidle/cpuidle_02.sh
@@ -29,5 +29,5 @@
CPUIDLE_KILLER=./cpuidle_killer
-check "cpuidle program runs successfully (120 secs)" "./$CPUIDLE_KILLER"
+check "cpuidle program runs successfully (120 secs)" "$CPUIDLE_KILLER"
test_status_show
diff --git a/cpuidle/cpuidle_03.sh b/cpuidle/cpuidle_03.sh
index 5dbf37f..26d3e28 100755
--- a/cpuidle/cpuidle_03.sh
+++ b/cpuidle/cpuidle_03.sh
@@ -46,7 +46,7 @@ check_cpuidle_kill() {
fi
set_offline $1
- check "cpuidle program runs successfully (120 secs)" "./$CPUIDLE_KILLER"
+ check "cpuidle program runs successfully (120 secs)" "$CPUIDLE_KILLER"
}
trap "restore_cpus; sigtrap" HUP INT TERM