if the glmark2 as a heater isn't there, don't report a launch failure.
Signed-off-by: Hongbo Zhang <[email protected]>
---
thermal/thermal_03.sh | 2 +-
thermal/thermal_06.sh | 2 +-
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
--
1.8.0
_______________________________________________
linaro-dev mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/linaro-dev