Skip to content
Snippets Groups Projects
Commit a4b3363e authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

TEST: test pass through kwargs to subprocess

parent d84cee2e
No related branches found
No related tags found
No related merge requests found
...@@ -160,6 +160,25 @@ def test_run_tee(): ...@@ -160,6 +160,25 @@ def test_run_tee():
assert capture.stdout == expstdout assert capture.stdout == expstdout
def test_run_passthrough():
test_script = textwrap.dedent("""
#!/bin/bash
echo "env: $RUN_TEST_ENV_VAR"
""").strip()
with tempdir.tempdir():
# return code == 0
mkexec('script.sh', test_script.format(0))
env = {'RUN_TEST_ENV_VAR' : 'howdy ho'}
expstdout = "env: howdy ho\n"
assert run.run('./script.sh', env=env) == expstdout
def test_dryrun(): def test_dryrun():
test_script = textwrap.dedent(""" test_script = textwrap.dedent("""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment