Просмотр исходного кода

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

[SVN r36752]
Aleksey Gurtovoy 19 лет назад
Родитель
Сommit
554ba57706
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      tools/regression/xsl_reports/boost_wide_report.py

+ 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号