mbox series

[U-Boot,0/8] test/py: Fixes for python 3.x

Message ID 20170914200634.17818-1-paul.burton@imgtec.com
Headers show
Series test/py: Fixes for python 3.x | expand

Message

Paul Burton Sept. 14, 2017, 8:06 p.m. UTC
This series allows test/py to run on python 3.x in addition to the
already supported python 2.x. With it applied I currently see only one
failure (test_ut[ut_dm_usb_flash]) which doesn't appear to be python
related when running with:

$ ./test/py/test.py --bd sandbox --build

Thanks,
    Paul

Paul Burton (8):
  test/py: Make print statements python 3.x safe
  test/py: Use range() rather than xrange()
  test/py: Import 'configparser' lower case to be python 3.x safe
  test/py: Import StringIO from io module for python 3.x
  test/py: Encode/decode strings for stdio
  test/py: fit: Open files as binary files
  test/py: hush_if_test: Use open() in place of file()
  test/py: vboot: Remove stderr redirect from openssl command

 test/py/conftest.py                | 16 ++++++++++++----
 test/py/multiplexed_log.py         |  4 ++--
 test/py/test.py                    |  6 ++++--
 test/py/tests/test_fit.py          | 14 ++++++++------
 test/py/tests/test_hush_if_test.py |  2 +-
 test/py/tests/test_ut.py           |  2 +-
 test/py/tests/test_vboot.py        |  4 ++--
 test/py/u_boot_console_sandbox.py  |  4 ++--
 test/py/u_boot_spawn.py            | 12 ++++++------
 test/py/u_boot_utils.py            |  4 ++--
 10 files changed, 40 insertions(+), 28 deletions(-)