Skip to content

Commit

Permalink
the tripple sing quoting for srting output icludes the charage return…
Browse files Browse the repository at this point in the history
…s after all
  • Loading branch information
Terry McGuinness committed Jul 1, 2024
1 parent 68447dc commit 594d4a3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ci/scripts/tests/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,12 @@ def test_setup_xml():


def test_setup_xml_fail_config_env_cornercase():
script_content = (`#!/usr/bin/env bash\n`
`export HOMEgfs=foobar\n`
`../../../workflow/setup_xml.py "${1}"\n`)

script_content = ('''#!/usr/bin/env bash
export HOMEgfs=foobar
../../../workflow/setup_xml.py "${1}"\n
''')

with open('run_setup_xml.sh', 'w') as file:
file.write(script_content)
os.chmod('run_setup_xml.sh', 0o755)
Expand Down

0 comments on commit 594d4a3

Please sign in to comment.