diff --git a/samples/subsys/testsuite/pytest/pytest/conftest.py b/samples/subsys/testsuite/pytest/pytest/conftest.py index a21762c910342..75b5c58527308 100644 --- a/samples/subsys/testsuite/pytest/pytest/conftest.py +++ b/samples/subsys/testsuite/pytest/pytest/conftest.py @@ -4,7 +4,7 @@ import pytest -# add option "--comdopt" to pytest, or it will report "unknown option" +# add option "--cmdopt" to pytest, or it will report "unknown option" # this option is passed from twister. def pytest_addoption(parser): parser.addoption( diff --git a/scripts/pylib/twister/twisterlib/harness.py b/scripts/pylib/twister/twisterlib/harness.py index 814b1a0eb3a64..ff2bd9735c1f6 100644 --- a/scripts/pylib/twister/twisterlib/harness.py +++ b/scripts/pylib/twister/twisterlib/harness.py @@ -3,6 +3,7 @@ import re import os import subprocess +import shlex from collections import OrderedDict import xml.etree.ElementTree as ET import logging @@ -207,6 +208,9 @@ def pytest_run(self, log_file): outs = [] errs = [] + logger.debug( + "Running pytest command: %s", + " ".join(shlex.quote(a) for a in cmd)) with subprocess.Popen(cmd, stdout = subprocess.PIPE, stderr = subprocess.PIPE) as proc: