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 c2f0253 commit 092e559
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/pylib/twister/twisterlib/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import elftools
import yaml
from colorama import Fore
from domains import Domains
from elftools.elf.elffile import ELFFile
from elftools.elf.sections import SymbolTableSection
from packaging import version
Expand All @@ -39,6 +38,10 @@
if sys.platform == 'linux':
from twisterlib.jobserver import GNUMakeJobClient, GNUMakeJobServer, JobClient

from twisterlib.environment import ZEPHYR_BASE

sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/build_helpers"))
from domains import Domains
from twisterlib.environment import TwisterEnv
from twisterlib.harness import HarnessImporter, Pytest
from twisterlib.log_helper import log_command
Expand Down

0 comments on commit 092e559

Please sign in to comment.