scripts: Fix twisterlib for ruff - SIM202, SIM201
This fixes ruff linting error SIM201, where not is used instead of a more appropriate comparison operator. SIM202 exclusion was removed, as it didn't apply to anything. Signed-off-by: Lukasz Mrugala <lukaszx.mrugala@intel.com>
This commit is contained in:
parent
f9c62afd26
commit
e8c54657e4
4 changed files with 4 additions and 10 deletions
|
@ -1730,7 +1730,7 @@ class TwisterRunner:
|
|||
the static filter stats. So need to prepare them before pipline starts.
|
||||
'''
|
||||
for instance in self.instances.values():
|
||||
if instance.status == TwisterStatus.FILTER and not instance.reason == 'runtime filter':
|
||||
if instance.status == TwisterStatus.FILTER and instance.reason != 'runtime filter':
|
||||
self.results.filtered_static_increment()
|
||||
self.results.filtered_configs_increment()
|
||||
self.results.filtered_cases_increment(len(instance.testsuite.testcases))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue