Skip to content

Commit

Permalink
Tests: Take over env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Croydon committed May 18, 2024
1 parent 82db5b2 commit 5d9bdd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bincrafters_conan_remote/test/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
}

def _run_command(command:List[str]):
return subprocess.run(command, capture_output=True, text=True, env=env_vars)
env = os.environ.copy()
env.update(env_vars)
return subprocess.run(command, capture_output=True, text=True, env=env)

def cli_command(command:List[str], expected_returncode:int=0, expected_outputs:List[str]=[]):
result = _run_command(command)
Expand Down

0 comments on commit 5d9bdd9

Please sign in to comment.