Skip to content

Commit

Permalink
twister: add an explicit path before import Domains
Browse files Browse the repository at this point in the history
This is line is breaking in some CI setups since the recent ruff fixup
with:

ModuleNotFoundError: No module named 'domains'

Try and fixit by explicitly adding the path before the include, all
other instances have it already.

Signed-off-by: Fabio Baltieri <[email protected]>
  • Loading branch information
fabiobaltieri committed Nov 30, 2024
1 parent 6c7b38f commit dbab405
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/pylib/twister/twisterlib/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
import elftools
import yaml
from colorama import Fore

sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/build_helpers"))

Check failure on line 27 in scripts/pylib/twister/twisterlib/runner.py

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

Python lint error (F821) see https://docs.astral.sh/ruff/rules/undefined-name

scripts/pylib/twister/twisterlib/runner.py:27 Undefined name `ZEPHYR_BASE`

Check failure on line 27 in scripts/pylib/twister/twisterlib/runner.py

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

E0602

scripts/pylib/twister/twisterlib/runner.py:27 Undefined variable 'ZEPHYR_BASE' (undefined-variable)
from domains import Domains

from elftools.elf.elffile import ELFFile
from elftools.elf.sections import SymbolTableSection
from packaging import version
Expand Down

0 comments on commit dbab405

Please sign in to comment.