Skip to content

Commit 1341166

Browse files
author
David Reiss
committed
pytest: Log pytest command
This makes it easy to run the command manually, possibly with edits to change the test behavior. Signed-off-by: David Reiss <[email protected]>
1 parent fc10f16 commit 1341166

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/pylib/twister/twisterlib/harness.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import re
44
import os
55
import subprocess
6+
import shlex
67
from collections import OrderedDict
78
import xml.etree.ElementTree as ET
89
import logging
@@ -207,6 +208,9 @@ def pytest_run(self, log_file):
207208
outs = []
208209
errs = []
209210

211+
logger.debug(
212+
"Running pytest command: %s",
213+
" ".join(shlex.quote(a) for a in cmd))
210214
with subprocess.Popen(cmd,
211215
stdout = subprocess.PIPE,
212216
stderr = subprocess.PIPE) as proc:

0 commit comments

Comments
 (0)