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>
diff --git a/thermal/thermal_04.sh b/thermal/thermal_04.sh
index 37c65f6..b290c5a 100755
--- a/thermal/thermal_04.sh
+++ b/thermal/thermal_04.sh
@@ -54,7 +54,7 @@
init_temp=0
final_temp=0
cool_temp=0
- ./$HEAT_CPU_MODERATE moderate &
+ $HEAT_CPU_MODERATE moderate &
pid=$!
test $pid -eq 0 && return