[Piglit] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 117: ordinal not in range(128)
Dylan Baker
dylan at pnwbakers.com
Thu May 11 17:37:00 UTC 2017
Quoting Dai, XiangX (2017-05-10 22:54:45)
> Hi, all!
>
> I test with piglit/igt-basic which is a wonderfule test tool.
> But i find a confused issue like below:
> Traceback (most recent call last):
> File "/lkp/benchmarks/piglit/lib/piglit/framework/test/base.py", line 209, in
> execute
> self.run()
> File "/lkp/benchmarks/piglit/lib/piglit/framework/test/base.py", line 270, in
> run
> self._run_command()
> File "/lkp/benchmarks/piglit/lib/piglit/framework/test/base.py", line 337, in
> _run_command
> out, err = proc.communicate(timeout=self.timeout)
> File "/usr/lib/python3.5/subprocess.py", line 801, in communicate
> stdout, stderr = self._communicate(input, endtime, timeout)
> File "/usr/lib/python3.5/subprocess.py", line 1485, in _communicate
> self.stdout.encoding)
> File "/usr/lib/python3.5/subprocess.py", line 705, in _translate_newlines
> data = data.decode(encoding)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 117:
> ordinal not in range(128)
>
> When test igt-gem_pread-basic and igt-gem_pwrite-basic, the above issue occur.
> I try to set the default code way to ues utf-8 but not help.
>
> My test host is debian with the kernel v4.11-rc8.
>
This might be a known python issue. What is the output of "python3 --version"?
[snip]
>
> Also, i met a question when i want to retest pread:
> root at lkp-hsw-d01 /lkp/benchmarks/piglit# bin/piglit run igt -t igt/gem_pread/
> basic /tmp/lkp/piglit-results -x igt/gem_pread/basic
> Fatal Error: There are no tests scheduled to run. Aborting run.
This is actually rather simple, you'd specified conflicting arguments:
"-t igt/gem_pread/basic" and "-x igt/gem_pread/basic"
-t tells piglit to *only* run tests that match igt/gem_pread/basic, and -x tells
piglit to *not* run any tests that match igt/gem_pread/basic. You should drop
the "-x ..." and it should do what you want.
>
> Could you help me?
>
> Thanks
> Dai Xiang
Dylan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: signature
URL: <https://lists.freedesktop.org/archives/piglit/attachments/20170511/88f57590/attachment.sig>
More information about the Piglit
mailing list