summaryrefslogtreecommitdiff
path: root/bin/just-mr.py
diff options
context:
space:
mode:
Diffstat (limited to 'bin/just-mr.py')
-rwxr-xr-xbin/just-mr.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/just-mr.py b/bin/just-mr.py
index 472131d2..f010fec9 100755
--- a/bin/just-mr.py
+++ b/bin/just-mr.py
@@ -50,10 +50,10 @@ def fail(s):
log(s)
sys.exit(1)
-def run_cmd(cmd, *, env=None, cwd):
+def run_cmd(cmd, *, env=None, stdout=subprocess.DEVNULL, stdin=None, cwd):
result = subprocess.run(
cmd, cwd=cwd, env=env,
- stdout=subprocess.DEVNULL)
+ stdout=stdout, stdin=stdin)
if result.returncode != 0:
fail("Command %s in %s failed"
% (cmd, cwd))