Răsfoiți Sursa

Check for errors

[SVN r32804]
Aleksey Gurtovoy 20 ani în urmă
părinte
comite
20738bf51d
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      tools/regression/xsl_reports/utils/libxslt.py

+ 3 - 1
tools/regression/xsl_reports/utils/libxslt.py

@@ -31,5 +31,7 @@ def libxslt( log, xml_file, xsl_file, output_file, parameters = None ):
     transform_command = transform_command + ' "%s" ' % xslt_param( xsl_file )
     transform_command = transform_command + ' "%s" ' % xslt_param( xml_file )
     log( transform_command )
-    os.system( transform_command )    
+    rc = os.system( transform_command )
+    if rc != 0:
+        raise Exception( '"%s" failed with return code %d' % ( transform_command, rc ) )
 

粤ICP备19079148号