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 <dreiss@meta.com>
This commit is contained in:
David Reiss 2023-01-19 15:52:45 -08:00 committed by Anas Nashif
commit 2d8271dca1

View file

@ -3,6 +3,7 @@ from asyncio.log import logger
import re
import os
import subprocess
import shlex
from collections import OrderedDict
import xml.etree.ElementTree as ET
import logging
@ -207,6 +208,9 @@ class Pytest(Harness):
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: