Signed-off-by: Kyr <kyrylo.shatskyy@suse.com>
if kernel_hash:
log.info("kernel sha1: {hash}".format(hash=kernel_hash))
kernel_dict = dict(kernel=dict(kdb=True, sha1=kernel_hash))
- if kernel_hash is not 'distro':
+ if kernel_hash != 'distro':
kernel_dict['kernel']['flavor'] = self.args.kernel_flavor
else:
kernel_dict = dict()
x += 1
def generate_tree(
max_facets, max_fanout, max_depth, namegen, top=True):
- if max_depth is 0:
+ if max_depth == 0:
return None
- if max_facets is 0:
+ if max_facets == 0:
return None
items = random.choice(range(max_fanout))
- if items is 0 and top:
+ if items == 0 and top:
items = 1
- if items is 0:
+ if items == 0:
return None
sub_max_facets = max_facets / items
tree = {}
raise
if bool(op["expectfail"]):
result = 1
- if result is 1:
+ if result == 1:
if bool(op["expectfail"]):
log.info("failed as expected for op {op_}".format(op_=op))
else: