mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-05-07 04:58:57 +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 re
|
||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
|
import shlex
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
@@ -67,7 +68,7 @@ class FVPRunner:
|
|||||||
if name in os.environ:
|
if name in os.environ:
|
||||||
env[name] = os.environ[name]
|
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(
|
self._fvp_process = await asyncio.create_subprocess_exec(
|
||||||
*cli,
|
*cli,
|
||||||
stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
|
stdin=subprocess.DEVNULL, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
|
||||||
|
|||||||
Reference in New Issue
Block a user