Package: dpdk / 19.11.5-1~bpo10+1
Metadata
Package | Version | Patches format |
---|---|---|
dpdk | 19.11.5-1~bpo10+1 | 3.0 (quilt) |
Patch series
view the series filePatch | File delta | Description |
---|---|---|
fix autopkgtest py3.patch | (download) |
app/test/autotest_runner.py |
16 7 + 9 - 0 ! |
fix autopkgtest for python3 There are some python3 incompatibilities left in autotest_runner.py - encoding on check_output - StringIO |
autotest fix pexpect in python3.patch | (download) |
app/test/autotest_runner.py |
2 1 + 1 - 0 ! |
[patch] autotest: fix pexpect in python3 In python3 pexpect wants by default a BytesIO stream as log buffer. Otherwise it will (silently masked since we just return false) File "/usr/share/dpdk/test/autotest_runner.py", line 22, in wait_prompt child.sendline() File "/usr/lib/python3/dist-packages/pexpect/pty_spawn.py", line 555, in sendline return self.send(s + self.linesep) File "/usr/lib/python3/dist-packages/pexpect/pty_spawn.py", line 543, in send self._log(s, 'send') File "/usr/lib/python3/dist-packages/pexpect/spawnbase.py", line 126, in _log self.logfile.write(s) We have plenty of other code writing and using this buffer. So instead of changing the type and modifying many more places we tell the spawn [1] method to encode things right away - then the rest behaves as it did with python2. [1]: https://pexpect.readthedocs.io/en/stable/api/pexpect.html#spawn-class Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com> |
1