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:
parent
f61929455d
commit
2d8271dca1
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue