@@ -181,13 +181,14 @@ def test_rcfile(self):
181181 self .assertEqual (_stdout (p ), "Hello Rez World!" )
182182 os .remove (path )
183183
184+ # TODO get these shells working again
184185 @per_available_shell (exclude = ["cmd" , "powershell" , "pwsh" , "csh" , "tcsh" ])
185186 @install_dependent ()
186187 def test_rez_env_output (self ):
187188 target_shell = config .default_shell # overridden by test util
188189
189190 def _test (txt ):
190- # Assumes that the shell has an echo command, build -in or alias
191+ # Assumes that the shell has an echo command, built -in or alias
191192 binpath = os .path .join (system .rez_bin_path , "rez-env" )
192193 args = [binpath , "--shell" , target_shell , "--" , "echo" , txt ]
193194
@@ -196,8 +197,13 @@ def _test(txt):
196197 stderr = subprocess .PIPE , universal_newlines = True
197198 )
198199 sh_out = process .communicate ()
200+
201+ # because powershell may not exit with !0 on error, depending on
202+ # how it's been configured
203+ #
199204 if sh_out [1 ]:
200205 raise Exception ("Command %r failed:\n %s" % (txt , sh_out [1 ]))
206+
201207 self .assertEqual (sh_out [0 ].strip (), txt )
202208
203209 # please note - it's no coincidence that there are no substrings like
0 commit comments