diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2025-02-20 14:46:15 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2025-02-24 13:24:22 +0100 |
commit | 48828ae25ff4dbf961a40502c7fe761076d98888 (patch) | |
tree | 41e8325c8a5d1ad25e0f2679fb0fa728509084c4 /bin | |
parent | 51c80fbdfb5a61b4a1fad45cfab244703108c08a (diff) | |
download | justbuild-48828ae25ff4dbf961a40502c7fe761076d98888.tar.gz |
just-lock: Allow input argument for method running commands
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/just-lock.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/just-lock.py b/bin/just-lock.py index b0ef5340..c47937c0 100755 --- a/bin/just-lock.py +++ b/bin/just-lock.py @@ -139,6 +139,7 @@ def run_cmd( env: Optional[Any] = None, stdout: Optional[Any] = subprocess.DEVNULL, stdin: Optional[Any] = None, + input: Optional[bytes] = None, cwd: str, attempts: int = 1, fail_context: Optional[str] = None, @@ -152,7 +153,8 @@ def run_cmd( cwd=cwd, env=env, stdout=stdout, - stdin=stdin) + stdin=stdin, + input=input) if result.returncode == 0: return result.stdout, result.returncode # return successful result if fail_context is not None: |