aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Zhijian <lizhijian@cn.fujitsu.com>2017-10-17 11:02:21 +0800
committerLisa Nguyen <lisa.nguyen@linaro.org>2017-10-18 11:30:43 -0700
commit5e89e1aec43715f7fddb4ca8b3dd7437364137a6 (patch)
tree001e7db27aa9332e05f07f6366e3a6fa90a3e2ea
parentebb4a02f7059c0fde7de853f2f9e25e955def5f5 (diff)
downloadpm-qa-5e89e1aec43715f7fddb4ca8b3dd7437364137a6.tar.gz
thermal: add missing get_os before check the return value
'ps' have different output between Android and ubuntu, and test suite use get_os to determine which OS the scripts are running on. at commit 84479a38, thermal: Get correct PID for heat_cpu based on OS this patch want to get PID based on OS, but it looks thermal_06.sh forget to add get_os before checking the OS. Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
-rwxr-xr-xthermal/thermal_06.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/thermal/thermal_06.sh b/thermal/thermal_06.sh
index d8bcd23..6fdc469 100755
--- a/thermal/thermal_06.sh
+++ b/thermal/thermal_06.sh
@@ -50,6 +50,7 @@ check_trip_point_change() {
trip_type=0
trip_type_path=0
$CPU_HEAT_BIN &
+ get_os
if [ $? -eq 1 ]; then
cpu_pid=$(ps | grep heat_cpu| awk '{print $1}')
else