Skip to content

Commit

Permalink
post review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mpnowacki-reef committed Oct 28, 2023
1 parent df6878a commit c96f71b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/integration/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,10 @@ def parse_command(self, env):
"""
command = self.command.split(' ')
if self.env_file_cmd_placeholder:
if any('\n' in var_value for var_value in env.values()):
raise ValueError(
'Env vars containing new line characters will break env file format'
)
env_file_path = mktemp()
pathlib.Path(env_file_path).write_text('\n'.join(f'{k}={v}' for k, v in env.items()))
command = [
Expand Down

0 comments on commit c96f71b

Please sign in to comment.