Skip to content

Commit 092e559

Browse files
committed
twister: add an explicit path before import Domains
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]>
1 parent c2f0253 commit 092e559

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/pylib/twister/twisterlib/runner.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import elftools
2424
import yaml
2525
from colorama import Fore
26-
from domains import Domains
2726
from elftools.elf.elffile import ELFFile
2827
from elftools.elf.sections import SymbolTableSection
2928
from packaging import version
@@ -39,6 +38,10 @@
3938
if sys.platform == 'linux':
4039
from twisterlib.jobserver import GNUMakeJobClient, GNUMakeJobServer, JobClient
4140

41+
from twisterlib.environment import ZEPHYR_BASE
42+
43+
sys.path.insert(0, os.path.join(ZEPHYR_BASE, "scripts/pylib/build_helpers"))
44+
from domains import Domains
4245
from twisterlib.environment import TwisterEnv
4346
from twisterlib.harness import HarnessImporter, Pytest
4447
from twisterlib.log_helper import log_command

0 commit comments

Comments
 (0)