Skip to content
Snippets Groups Projects
Commit 74df7f33 authored by Simon McVittie's avatar Simon McVittie Committed by Sjoerd Simons
Browse files

run-aa-test: do not prefix "# " to output from the underlying test

In nearly all cases, the underlying test is itself designed as a LAVA
test with (at least partially) structured output. We want to capture
and parse that output, so that the LAVA logs correctly blame one
specific underlying test for failures if necessary.

Differential Revision: https://phabricator.apertis.org/D276


Signed-off-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
Reviewed-by: araujo
parent da8a7720
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import sys
from difflib import unified_diff
from os import access, getenv, R_OK, X_OK, setsid
from os.path import basename
......@@ -85,7 +86,7 @@ test = Popen(cmdline, preexec_fn=setsid, stdout=PIPE,
print('#=== running test script: %r ===' % cmdline)
for line in test.stdout:
print('# %s' % line.rstrip('\n'))
sys.stdout.write(line)
# Wait for tests to exit
ret = test.wait()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment