aboutsummaryrefslogtreecommitdiff
path: root/lava_dispatcher/actions/test
diff options
context:
space:
mode:
authorMatt Hart <matthew.hart@linaro.org>2018-05-17 13:21:14 +0100
committerNeil Williams <neil.williams@linaro.org>2018-06-22 08:15:07 +0000
commit41747ab2f1fff8541eb8c2606969f8648f061f01 (patch)
treeb43490c4c1af84ccb7569906ec7ef371f45ed55d /lava_dispatcher/actions/test
parent9b7ec71206e86a70be05256744bfc2653f9fc44a (diff)
Use /dev/kmsg for LAVA test signals, if requested
Adds a parameter "lava-signal" to the test definition parameters which when set to "kmsg" will tell the lava test scripts to echo their output to /dev/kmsg. This *might* help with test cases that produce kernel output and can interrupt LAVA signals sent to stdout. This review does NOT cover the issue that lava-test-runner signals will still only be sent to stdout. Change-Id: I8ac92c725ac49e40847d1a54c13bef81030903fa
Diffstat (limited to 'lava_dispatcher/actions/test')
-rw-r--r--lava_dispatcher/actions/test/shell.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lava_dispatcher/actions/test/shell.py b/lava_dispatcher/actions/test/shell.py
index 5a278ba70..819be8f6c 100644
--- a/lava_dispatcher/actions/test/shell.py
+++ b/lava_dispatcher/actions/test/shell.py
@@ -170,8 +170,8 @@ class TestShellAction(TestAction):
def _reset_patterns(self):
# Extend the list of patterns when creating subclasses.
self.patterns = {
- "exit": "<LAVA_TEST_RUNNER>: exiting",
- "error": "<LAVA_TEST_RUNNER>: ([^ ]+) installer failed, skipping",
+ "exit": "<LAVA_TEST_RUNNER EXIT>",
+ "error": "<LAVA_TEST_RUNNER INSTALL_FAIL>",
"eof": pexpect.EOF,
"timeout": pexpect.TIMEOUT,
"signal": r"<LAVA_SIGNAL_(\S+) ([^>]+)>",
@@ -243,7 +243,6 @@ class TestShellAction(TestAction):
"otherwise this is a bug which should be reported.")
self.logger.debug("Using %s" % lava_test_results_dir)
- connection.sendline('ls -l %s/' % lava_test_results_dir, delay=self.character_delay)
if lava_test_sh_cmd:
connection.sendline('export SHELL=%s' % lava_test_sh_cmd, delay=self.character_delay)