Procházet zdrojové kódy

Filter out FTP folder content to exclude bjam logs and other irrelevant files

[SVN r36752]
Aleksey Gurtovoy před 19 roky
rodič
revize
554ba57706

+ 2 - 0
tools/regression/xsl_reports/boost_wide_report.py

@@ -9,6 +9,7 @@ import shutil
 import codecs
 import xml.sax.handler
 import glob
+import re
 import os.path
 import os
 import string
@@ -346,6 +347,7 @@ def ftp_task( site, site_path , destination ):
     f.cwd( site_path )
 
     source_content = list_ftp( f )
+    source_content = [ x for x in source_content if re.match( r'.+[.](?<!log[.])zip', x.name ) ]
     destination_content = list_dir( destination )
     d = diff( source_content, destination_content )
 

粤ICP备19079148号