@@ -112,7 +112,7 @@ def test_rose_fileinstall_uses_rose_template_vars(tmp_path):
112112 'opts=\n [env]\n FOO=1'
113113 f'\n [template variables]\n X=Y\n '
114114 f'#{ ROSE_ORIG_HOST_INSTALLED_OVERRIDE_STRING } \n '
115- f'ROSE_ORIG_HOST={ HOST } \n '
115+ f'ROSE_ORIG_HOST=" { HOST } " \n '
116116 f'\n [env]\n '
117117 f'#{ ROSE_ORIG_HOST_INSTALLED_OVERRIDE_STRING } \n '
118118 f'ROSE_ORIG_HOST={ HOST } \n '
@@ -139,16 +139,16 @@ def test_rose_fileinstall_uses_rose_template_vars(tmp_path):
139139 'test/opt/rose-suite-bar.conf' : '' ,
140140 'test/opt/rose-suite-baz.conf' : '' ,
141141 'test/opt/rose-suite-cylc-install.conf' : (
142- '!opts=bar\n [env]\n BAR=1\n ROSE_ORIG_HOST=abc123\n '
143- '\n [template variables]\n ROSE_ORIG_HOST=abc123\n '
142+ '!opts=bar\n [env]\n BAR=1\n ROSE_ORIG_HOST=" abc123" \n '
143+ '\n [template variables]\n ROSE_ORIG_HOST=" abc123" \n '
144144 ),
145145 'ref/opt/rose-suite-cylc-install.conf' :
146146 f'!opts=bar baz\n [env]\n BAR=2\n '
147147 f'#{ ROSE_ORIG_HOST_INSTALLED_OVERRIDE_STRING } \n '
148148 f'ROSE_ORIG_HOST={ HOST } \n '
149149 f'\n [template variables]\n '
150150 f'#{ ROSE_ORIG_HOST_INSTALLED_OVERRIDE_STRING } \n '
151- f'ROSE_ORIG_HOST={ HOST } \n ' ,
151+ f'ROSE_ORIG_HOST=" { HOST } " \n ' ,
152152 'ref/rose-suite.conf' : '!opts=foo bar baz (cylc-install)' ,
153153 'ref/opt/rose-suite-foo.conf' : '' ,
154154 'ref/opt/rose-suite-bar.conf' : '' ,
@@ -177,7 +177,7 @@ def test_rose_fileinstall_uses_rose_template_vars(tmp_path):
177177 f'ROSE_ORIG_HOST={ HOST } \n '
178178 f'\n [template variables]\n '
179179 f'#{ ROSE_ORIG_HOST_INSTALLED_OVERRIDE_STRING } \n '
180- f'ROSE_ORIG_HOST={ HOST } \n '
180+ f'ROSE_ORIG_HOST=" { HOST } " \n '
181181 ),
182182 'ref/rose-suite.conf' : '!opts=a b c (cylc-install)' ,
183183 'ref/opt/rose-suite-a.conf' : '' ,
@@ -207,7 +207,7 @@ def test_rose_fileinstall_uses_rose_template_vars(tmp_path):
207207 f'ROSE_ORIG_HOST={ HOST } \n '
208208 f'[jinja2:suite.rc]\n a="b"\n '
209209 f'#{ ROSE_ORIG_HOST_INSTALLED_OVERRIDE_STRING } \n '
210- f'ROSE_ORIG_HOST={ HOST } \n '
210+ f'ROSE_ORIG_HOST=" { HOST } " \n '
211211 ),
212212 'ref/rose-suite.conf' : (
213213 '!opts=foo bar (cylc-install)\n [jinja2:suite.rc]\n y="base"'
0 commit comments