Skip to content

Commit 49290a7

Browse files
committed
Update to correct test result file path and avoid extra line at start of result file.
Signed-off-by: Paul Mani <paulmani88@yahoo.com>
1 parent d109eef commit 49290a7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

demos/copilot/src/tests/wrap-qemu.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ def run_qemu_with_watch(str_to_exit_on, timeout, commands):
5757
if isWatchedStr("buildroot login:", output):
5858
commandReady = True
5959

60+
if(resultStart):
61+
if(outputFile is None):
62+
outputFile = open("../../../test-results/test-results-system-cross.xml", "w")
63+
outputFile.write(output)
64+
6065
if isWatchedStr("Test results directory not found. Writing results to console", output):
6166
resultStart = True
6267

@@ -71,10 +76,6 @@ def run_qemu_with_watch(str_to_exit_on, timeout, commands):
7176

7277
# Print QEMU output
7378
print(output.strip())
74-
if(resultStart):
75-
if(outputFile is None):
76-
outputFile = open("../../../test-results-system-cross.xml", "w")
77-
outputFile.write(output)
7879

7980

8081

0 commit comments

Comments
 (0)