aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhongbo.zhang <hongbo.zhang@linaro.com>2012-11-26 15:44:07 +0800
committerhongbo.zhang <hongbo.zhang@linaro.com>2012-11-28 17:50:36 +0800
commitd52b8497c2bcd5a3e5ccc68b236a31f43dfed149 (patch)
treead0e26c87430bcc264088481294476b9e2e1ab59
parent9fec6ec9150237108dc1230f4056013c97f3669d (diff)
thermal: don't check launch of the glmark2 if it isn't there
if the glmark2 as a heater isn't there, don't report a launch failure. Signed-off-by: hongbo.zhang <hongbo.zhang@linaro.com>
-rwxr-xr-xthermal/thermal_03.sh2
-rwxr-xr-xthermal/thermal_06.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/thermal/thermal_03.sh b/thermal/thermal_03.sh
index 5790320..5703ad3 100755
--- a/thermal/thermal_03.sh
+++ b/thermal/thermal_03.sh
@@ -57,10 +57,10 @@ check_temperature_change() {
$GPU_HEAT_BIN &
gpu_pid=$(ps | grep $GPU_HEAT_BIN| awk '{print $1}')
test -z $gpu_pid && gpu_pid=0
+ check "start gpu heat binary" "test $gpu_pid -ne 0"
else
echo "glmark2 not found." 1>&2
fi
- check "start gpu heat binary" "test $gpu_pid -ne 0"
sleep 5
local final_temp=$(cat $dirpath/temp)
diff --git a/thermal/thermal_06.sh b/thermal/thermal_06.sh
index 8013b82..fcb6c0a 100755
--- a/thermal/thermal_06.sh
+++ b/thermal/thermal_06.sh
@@ -65,10 +65,10 @@ check_trip_point_change() {
$GPU_HEAT_BIN &
gpu_pid=$(ps | grep $GPU_HEAT_BIN| awk '{print $1}')
test -z $gpu_pid && gpu_pid=0
+ check "start gpu heat binary" "test $gpu_pid -ne 0"
else
echo "glmark2 not found." 1>&2
fi
- check "start gpu heat binary" "test $gpu_pid -ne 0"
local index=0
for trip in $(ls $dirpath | grep "trip_point_['$MAX_ZONE']_temp"); do