@@ -221,25 +221,25 @@ def printtail(out, name, forecolor, tail_n=0,
221221 lines = [l for l in lines if not re_filter_out .search (l )]
222222 if tail_n == 0 or len (lines ) <= tail_n :
223223 info ('{}:\n {}\t {}{}' .format (
224- name , forecolor , '\t \n ' .join (lines ), Fore .RESET ))
224+ name , forecolor , '\t \n ' .join (lines ), Out_Fore .RESET ))
225225 else :
226226 info ('{} (last {} lines of {}):\n {}\t {}{}' .format (
227227 name , tail_n , len (lines ),
228- forecolor , '\t \n ' .join (lines [- tail_n :]), Fore .RESET ))
229- printtail (err .stdout , 'STDOUT' , Fore .YELLOW , tail_n ,
228+ forecolor , '\t \n ' .join (lines [- tail_n :]), Out_Fore .RESET ))
229+ printtail (err .stdout , 'STDOUT' , Out_Fore .YELLOW , tail_n ,
230230 re .compile (filter_in ) if filter_in else None ,
231231 re .compile (filter_out ) if filter_out else None )
232- printtail (err .stderr , 'STDERR' , Fore .RED )
232+ printtail (err .stderr , 'STDERR' , Err_Fore .RED )
233233 if is_critical :
234234 env = kwargs .get ("env" )
235235 if env is not None :
236236 info ("{}ENV:{}\n {}\n " .format (
237- Fore .YELLOW , Fore .RESET , "\n " .join (
237+ Err_Fore .YELLOW , Err_Fore .RESET , "\n " .join (
238238 "set {}={}" .format (n , v ) for n , v in env .items ())))
239239 info ("{}COMMAND:{}\n cd {} && {} {}\n " .format (
240- Fore .YELLOW , Fore .RESET , getcwd (), command , ' ' .join (args )))
240+ Err_Fore .YELLOW , Err_Fore .RESET , getcwd (), command , ' ' .join (args )))
241241 warning ("{}ERROR: {} failed!{}" .format (
242- Fore .RED , command , Fore .RESET ))
242+ Err_Fore .RED , command , Err_Fore .RESET ))
243243 exit (1 )
244244 else :
245245 raise
0 commit comments