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:
Attila Fazekas 2016-07-27 15:35:39 +02:00
parent e15700f1b9
commit 083faa0741

View File

@ -29,10 +29,7 @@ def _get_test_list(regex, env=None):
'subunit.run discover']
for line in raw_test_list:
for exclude in exclude_list:
if exclude in line:
bad = True
break
elif not line:
if exclude in line or not line:
bad = True
break
if not bad: