scripts: Fix twisterlib for ruff - SIM300
This fixes ruff linting error SIM300, where constant values are on the left side of an expression. Signed-off-by: Lukasz Mrugala <lukaszx.mrugala@intel.com>
This commit is contained in:
parent
a20e395174
commit
f9c62afd26
2 changed files with 1 additions and 2 deletions
|
@ -817,7 +817,6 @@
|
|||
"F541", # https://docs.astral.sh/ruff/rules/f-string-missing-placeholders
|
||||
"F811", # https://docs.astral.sh/ruff/rules/redefined-while-unused
|
||||
"SIM102", # https://docs.astral.sh/ruff/rules/collapsible-if
|
||||
"SIM300", # https://docs.astral.sh/ruff/rules/yoda-conditions
|
||||
"UP008", # https://docs.astral.sh/ruff/rules/super-call-with-parameters
|
||||
"UP015", # https://docs.astral.sh/ruff/rules/redundant-open-modes
|
||||
"UP031", # https://docs.astral.sh/ruff/rules/printf-string-formatting
|
||||
|
|
|
@ -158,7 +158,7 @@ class Harness:
|
|||
self.reason = "Testsuite failed"
|
||||
|
||||
if self.fail_on_fault:
|
||||
if self.FAULT == line:
|
||||
if line == self.FAULT:
|
||||
self.fault = True
|
||||
|
||||
if self.GCOV_START in line:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue