From c885917c712b9f9c8a6016411ac44d148dea7854 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 8 May 2025 04:22:18 +0200 Subject: u_boot_pylib: Provide directories to gitutil functions For testing it is useful to be able to set the current directory used for git operations, as well as the git-repo directory. Update some of the functions to support this. Signed-off-by: Simon Glass --- tools/u_boot_pylib/command.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools/u_boot_pylib/command.py') diff --git a/tools/u_boot_pylib/command.py b/tools/u_boot_pylib/command.py index 0e247355ef6..cb7ebf49ce5 100644 --- a/tools/u_boot_pylib/command.py +++ b/tools/u_boot_pylib/command.py @@ -203,7 +203,7 @@ def run_one(*cmd, **kwargs): return run_pipe([cmd], **kwargs) -def run_list(cmd): +def run_list(cmd, **kwargs): """Run a command and return its output Args: @@ -211,8 +211,9 @@ def run_list(cmd): Returns: str: output of command + **kwargs (dict of args): Extra arguments to pass in """ - return run_pipe([cmd], capture=True).stdout + return run_pipe([cmd], capture=True, **kwargs).stdout def stop_all(): -- cgit v1.2.3