mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-01-12 03:10:15 +00:00
arm/fvp: Join cli arguments in verbose logging
It is sometimes helpful to copy and paste the cli arguments from the verbose runfvp output (e.g. to test with a development FVP build), but currently the arguments are printed as a Python list. Use shlex.join(cli) to safely join the arguments together in form that can be reused directly in a shell. Issue-Id: SCM-5314 Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com> Change-Id: Ibb5c5ed45d02e241cb3858f68740fb9d4e89357a Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import asyncio
|
||||
import re
|
||||
import subprocess
|
||||
import os
|
||||
import shlex
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
@@ -67,7 +68,7 @@ class FVPRunner:
|
||||
if name in os.environ:
|
||||
env[name] = os.environ[name]
|
||||
|
||||
self._logger.debug(f"Constructed FVP call: {cli}")
|
||||
self._logger.debug(f"Constructed FVP call: {shlex.join(cli)}")
|
||||
self._fvp_process = await asyncio.create_subprocess_exec(
|
||||
*cli,
|
||||
stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
|
||||
|
||||
Reference in New Issue
Block a user