import os
import re
-import six
-
from tasks.util import get_remote_for_role
from tasks.util.workunit import get_refspec_after_overrides
# Create scratch dirs for any non-all workunits
log.info('Making a separate scratch dir for every client...')
for role in clients.keys():
- assert isinstance(role, six.string_types)
+ assert isinstance(role, str)
if role == "all":
continue
to False is passed, the 'timeout' command is not used.
"""
testdir = misc.get_testdir(ctx)
- assert isinstance(role, six.string_types)
+ assert isinstance(role, str)
cluster, type_, id_ = misc.split_role(role)
assert type_ == 'client'
remote = get_remote_for_role(ctx, role)
)
workunits_file = '{tdir}/workunits.list.{role}'.format(tdir=testdir, role=role)
- workunits = sorted(six.ensure_str(misc.get_file(remote, workunits_file)).split('\0'))
+ workunits = sorted(misc.get_file(remote, workunits_file).decode().split('\0'))
assert workunits
try: