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 44fbc25
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/pylib/twister/twisterlib/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
import elftools
import yaml
from colorama import Fore

from twisterlib.environment import ZEPHYR_BASE

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

Check failure on line 29 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 (I001) see https://docs.astral.sh/ruff/rules/unsorted-imports

scripts/pylib/twister/twisterlib/runner.py:7 Import block is un-sorted or un-formatted
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 44fbc25

Please sign in to comment.