-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sanitycheck generated incorrect acrn.xml on acrn platform #23309
Comments
@chen-png this issue is very difficult to reproduce, I do not have the same setup with acrn in place, Do you get this issue with boards other than acrn? |
no, other boards are good. |
for acrn, I found that in monitor_serial function, when invoking ser.readline() to get the serial output, the returned line value couldn't be correctly matched in test harness handle function, so sanitycheck couldn't get the pass/fail result foo each test unit, causing the generated acrn.xml error. |
the normal output should like this, the serial should read line by line.(i add a print to serial) DEBUG - DEVICE: =========================================== but for acrn output, it likes this, it didn't get the output line by line. starting test - test_fifo_is_empty_thread |
for acrn, each serial line has a '\r' char in front of the output, likes this: after the decode('utf-8', 'ignore') and rstrip(), the result likes this: but this can't be match successfully in result_re.match in harness.py, this \r will influence the match result. so we should delete this \r char in serial output. |
Describe the bug
Running sanitycheck on acrn platform, the generated two files acrn.xml and sanitycheck.xml are not same in sanity-out directory, the test results in these two files are different.
the result in sanitycheck.xml should be right, it's the same with sanitycheck.log.
To Reproduce
Steps to reproduce the behavior:
--west-flash="acrn_up2.sh"
Screenshots or console output
test results in acrn.xml
testsuites><testsuite errors="49" failures="0" name="Sanitycheck" skipped="0" tests="51" time="1458.823267"
test results in sanitycheck.xml
testsuites><testsuite errors="0" failures="7" name="Sanitycheck" skip="20" tests="125" time="1458.823267"
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: