aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhongbo.zhang <hongbo.zhang@linaro.com>2012-11-26 16:29:47 +0800
committerHongbo Zhang <hongbo.zhang@linaro.com>2013-01-09 15:44:33 +0800
commit82fbd05c8048eeddde522b1e666eb0e116078be0 (patch)
treeb65f3d8846d22cf1b561537a1e9df5c1800d89d0
parent40807512c150ade09f31183f81cb27520d91818f (diff)
thermal: add switch for thermal_06.sh
This script aims at testing all the trip points are crossed or not, since the trip points are usually very high and can be reached only in extreme conditions like high environment temerature etc, in normal conditions they cannot be all crossed even if the CPU load is high, so failures will be reported and this will introduce a mess. Add this switch to switch off this test by default, anyone who wants to do this test still can enable it manually. Signed-off-by: hongbo.zhang <hongbo.zhang@linaro.com>
-rwxr-xr-xthermal/thermal_06.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/thermal/thermal_06.sh b/thermal/thermal_06.sh
index 13f695d..28fdaec 100755
--- a/thermal/thermal_06.sh
+++ b/thermal/thermal_06.sh
@@ -28,6 +28,13 @@
source ../include/functions.sh
source ../include/thermal_functions.sh
+# test_switch: switch on/off this test
+test_switch=0
+if [ "$test_switch" -eq 0 ]; then
+ log_skip "test of trip points being crossed"
+ exit 0
+fi
+
TEST_LOOP=100
CPU_HEAT_BIN=../utils/heat_cpu
cpu_pid=0