From 594d4a3134038d373556fe423de110ccc4d07cac Mon Sep 17 00:00:00 2001 From: Terry McGuinness Date: Mon, 1 Jul 2024 18:35:22 -0400 Subject: [PATCH] the tripple sing quoting for srting output icludes the charage returns after all --- ci/scripts/tests/test_setup.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ci/scripts/tests/test_setup.py b/ci/scripts/tests/test_setup.py index 4ad24c79ae..7a5254e143 100755 --- a/ci/scripts/tests/test_setup.py +++ b/ci/scripts/tests/test_setup.py @@ -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)