rsd-devel / rsd

RSD: RISC-V Out-of-Order Superscalar Processor
Apache License 2.0
981 stars 98 forks source link

UnicodeDecodeError for RunTest.py script when running tests on Docker #30

Open sylwpro opened 3 years ago

sylwpro commented 3 years ago

"UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 1: invalid start byte"

Files with serial data used for outStr, refStr in SerialOutputComparator class in script Processor\Tools\TestDriver\RunTest.py are opened in UTF-8 on Docker. Maybe it would be better if it was binary comparison.

shioyadan commented 3 years ago

I confirmed that some test programs can actually output data that cannot be handled as UTF-8 and it can actually cause the problem. I am currently working on cleaning up test programs and I will change the script to treat data as binary in this branch. Thank you.