summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorTyler Baker <tyler.baker@linaro.org>2015-10-13 11:22:29 -0700
committerTyler Baker <tyler.baker@linaro.org>2015-10-13 11:26:41 -0700
commit331016b4a532197ecabd6cc5bf0b9b86b8cbcbec (patch)
tree217081356b8ce3dda1004d35ea6d91e1acd4f13a /android
parent89f520163c13bce0a8198d8d3401aa8928a181f1 (diff)
android: multinode-target: disable kernel messages during critical synchronization
Specifically on HiKey, when the adb daemon is restarted it causes kernel messages to flood the console. These messages can easily confuse the LAVA dispatcher signal handler and cause poor test reliabilty. This patch reads the current kernel messaging levels into a file, sets them to the lowests values, and restores them after the critical synchronization steps have finished. Change-Id: I3d481e878ddcb6f57fc8908924e531072adc9bbb Signed-off-by: Tyler Baker <tyler.baker@linaro.org>
Diffstat (limited to 'android')
-rw-r--r--android/multinode-target.yaml11
1 files changed, 7 insertions, 4 deletions
diff --git a/android/multinode-target.yaml b/android/multinode-target.yaml
index 6b5d3a0..185aab8 100644
--- a/android/multinode-target.yaml
+++ b/android/multinode-target.yaml
@@ -37,11 +37,14 @@ run:
- lava-test-case step2-get-adb --shell getprop service.adb.tcp.port
- lava-test-case step3-set-adb --shell setprop service.adb.tcp.port 5555
- lava-test-case step4-set-adb-root --shell setprop service.adb.root 1
- - lava-test-case step5-stop-adbd --shell stop adbd
- - lava-test-case step6-start-adbd --shell start adbd
+ - lava-test-case step5-capture-kmsg-levels --shell 'cat /proc/sys/kernel/printk > /data/local/tmp/kmsg_levels'
+ - lava-test-case step6-disable-kmsg --shell echo '1 1 1 1' > /proc/sys/kernel/printk
+ - lava-test-case step7-stop-adbd --shell stop adbd
+ - lava-test-case step8-start-adbd --shell start adbd
- else
# if there is no serial number or IP address available, _MISSING_ is passed to the host
- IPADDR="_MISSING_"
- fi
- - lava-test-case step7-send-ip --shell lava-send $TEST_NAME-send-ip ipaddr=$IPADDR
- - lava-test-case step8-multinode-sync --shell lava-sync $TEST_NAME-finished
+ - lava-test-case step9-send-ip --shell lava-send $TEST_NAME-send-ip ipaddr=$IPADDR
+ - lava-test-case step10-enable-kmsg --shell 'cat /data/local/tmp/kmsg_levels > /proc/sys/kernel/printk'
+ - lava-test-case step11-multinode-sync --shell lava-sync $TEST_NAME-finished