]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/workunit: py3 compat
authorKyr Shatskyy <kyrylo.shatskyy@suse.com>
Tue, 17 Dec 2019 00:46:26 +0000 (01:46 +0100)
committerKefu Chai <kchai@redhat.com>
Wed, 4 Mar 2020 05:09:16 +0000 (13:09 +0800)
Use six.ensure_str for `get_file()` output in order to
make code py3 compatible

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
qa/tasks/workunit.py

index 39c4458c4f6aea3babbef92a1fd0ed1aeee03faf..6e555770063e589a36a845a164ab149227da690d 100644 (file)
@@ -364,7 +364,7 @@ def _run_tests(ctx, refspec, role, tests, env, basedir,
     )
 
     workunits_file = '{tdir}/workunits.list.{role}'.format(tdir=testdir, role=role)
-    workunits = sorted(misc.get_file(remote, workunits_file).split('\0'))
+    workunits = sorted(six.ensure_str(misc.get_file(remote, workunits_file)).split('\0'))
     assert workunits
 
     try: