]> xenbits.xensource.com Git - xtf.git/commit
xtf-runner: python3 fix
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 17 Aug 2023 10:51:11 +0000 (11:51 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 18 Aug 2023 19:50:00 +0000 (20:50 +0100)
commitcec23a34c03ffcf12d68d35f0e1d7f9ae85ab49c
treebfbd2e54d8502d9acafe141ca9c672b1d234794a
parentbf1c4eb6cb52785cf539eb83752dfcecfe66c5d1
xtf-runner: python3 fix

issue:
  File "/home/xtf/xtf-runner", line 410, in interpret_selection
    if not line.startswith("xen_caps"):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: startswith first arg must be bytes or a tuple of bytes, not str

Adding `universal_newlines` open stdout as text file, so line should
be a `str`. `universal_newlines` is available on python 2.7. A new
alias `text` is only available in python 3.7.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xtf-runner