Explorar o código

stale zip removal

[SVN r24291]
Aleksey Gurtovoy %!s(int64=22) %!d(string=hai) anos
pai
achega
54c6ac4bbc

+ 4 - 0
tools/regression/xsl_reports/runner/collect_and_upload_logs.py

@@ -140,6 +140,10 @@ def collect_logs(
             utils.log( 'Could not find \'zip_cmd\' module in the script directory (%s).' % script_dir )
             raise Exception( 'Compressing failed!' )
         else:
+            if os.path.exists( archive_path ):
+                os.unlink( archive_path )
+                utils.log( 'Removing stale "%s".' % archive_path )
+                
             zip_cmd.main( results_file, archive_path )
             utils.log( 'Done compressing "%s".' % archive_path )
 

粤ICP备19079148号