@@ -221,25 +221,25 @@ def printtail(out, name, forecolor, tail_n=0,
221
221
lines = [l for l in lines if not re_filter_out .search (l )]
222
222
if tail_n == 0 or len (lines ) <= tail_n :
223
223
info ('{}:\n {}\t {}{}' .format (
224
- name , forecolor , '\t \n ' .join (lines ), Fore .RESET ))
224
+ name , forecolor , '\t \n ' .join (lines ), Out_Fore .RESET ))
225
225
else :
226
226
info ('{} (last {} lines of {}):\n {}\t {}{}' .format (
227
227
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 ,
230
230
re .compile (filter_in ) if filter_in else None ,
231
231
re .compile (filter_out ) if filter_out else None )
232
- printtail (err .stderr , 'STDERR' , Fore .RED )
232
+ printtail (err .stderr , 'STDERR' , Err_Fore .RED )
233
233
if is_critical :
234
234
env = kwargs .get ("env" )
235
235
if env is not None :
236
236
info ("{}ENV:{}\n {}\n " .format (
237
- Fore .YELLOW , Fore .RESET , "\n " .join (
237
+ Err_Fore .YELLOW , Err_Fore .RESET , "\n " .join (
238
238
"set {}={}" .format (n , v ) for n , v in env .items ())))
239
239
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 )))
241
241
warning ("{}ERROR: {} failed!{}" .format (
242
- Fore .RED , command , Fore .RESET ))
242
+ Err_Fore .RED , command , Err_Fore .RESET ))
243
243
exit (1 )
244
244
else :
245
245
raise
0 commit comments