Simplify logic in _get_test_list
_get_test_list had the same action for the elif case, it was replaced by 'or' . Change-Id: I2be9974beea3ca398d61e58726a63518b15cf3c4
This commit is contained in:
parent
e15700f1b9
commit
083faa0741
@ -29,10 +29,7 @@ def _get_test_list(regex, env=None):
|
|||||||
'subunit.run discover']
|
'subunit.run discover']
|
||||||
for line in raw_test_list:
|
for line in raw_test_list:
|
||||||
for exclude in exclude_list:
|
for exclude in exclude_list:
|
||||||
if exclude in line:
|
if exclude in line or not line:
|
||||||
bad = True
|
|
||||||
break
|
|
||||||
elif not line:
|
|
||||||
bad = True
|
bad = True
|
||||||
break
|
break
|
||||||
if not bad:
|
if not bad:
|
||||||
|
Loading…
Reference in New Issue
Block a user