#NEWLINE# def _check_cmd( call ) : #NEWLINE# #INDENT# '\n    Check the output of the cmd.run_all function call.\n    ' #NEWLINE# if ( call [ 'retcode' ] != 0 ) : #NEWLINE# #INDENT# comment = '' #NEWLINE# std_err = call . get ( 'stderr' ) #NEWLINE# std_out = call . get ( 'stdout' ) #NEWLINE# if std_err : #NEWLINE# #INDENT# comment += std_err #NEWLINE# #UNINDENT# if call : #NEWLINE# #INDENT# comment += std_out #NEWLINE# #UNINDENT# raise CommandExecutionError ( 'Error running command: {0}' . format ( comment ) ) #NEWLINE# #UNINDENT# return call