=== modified file 'lava_dispatcher/actions/lava_test_shell.py'
@@ -125,6 +125,7 @@
from lava_dispatcher import utils
from lava_dispatcher.actions import BaseAction
+from lava_dispatcher.client.base import wait_for_prompt
from lava_dispatcher.device.target import Target
from lava_dispatcher.downloader import download_image
@@ -455,7 +456,8 @@
with target.runner() as runner:
runner.wait_for_prompt(timeout)
- runner._connection.sendline("%s/bin/lava-test-runner" % target.deployment_data['lava_test_dir'])
+ runner._connection.sendline(
+ "%s/bin/lava-test-runner" % target.deployment_data['lava_test_dir'])
start = time.time()
if timeout == -1:
timeout = runner._connection.timeout
=== modified file 'lava_dispatcher/lava_test_shell.py'
@@ -227,7 +227,7 @@
'UNKNOWN': 'unknown'}
logging.warning("""Using a default pattern to parse the test result. This may lead to empty test result in certain cases.""")
- for line in stdout.split('\n'):
+ for lineno, line in enumerate(stdout.split('\n'), 1):
match = pattern.match(line.strip())
if match:
res = match.groupdict()
@@ -237,7 +237,8 @@
if res['result'] not in ('pass', 'fail', 'skip', 'unknown'):
logging.error('bad test result line: %s' % line.strip())
continue
-
+ res['log_lineno'] = lineno
+ res['log_filename'] = 'stdout.log'
results_from_log_file.append(res)
results_from_directories = []