@@ -194,7 +194,7 @@ def remove_vcs(self, test_dir):
194194 for tf in tilde_files :
195195 os .remove (tf )
196196
197- def __extract (self , test_path , extract_func = None , verbatim = False ):
197+ def __extract (self , test_path , extract_func = None , verbatim = False , filter = None ):
198198 """
199199 Given an archive file identified by test_path relative
200200 to a test files directory, return a new temp directory where the
@@ -206,7 +206,7 @@ def __extract(self, test_path, extract_func=None, verbatim=False):
206206 target_path = path .basename (test_path )
207207 target_dir = self .get_temp_dir (target_path )
208208 original_archive = self .get_test_loc (test_path )
209- extract_func (original_archive , target_dir , verbatim = verbatim )
209+ extract_func (original_archive , target_dir , verbatim = verbatim , filter = filter )
210210 return target_dir
211211
212212 def extract_test_zip (self , test_path , * args , ** kwargs ):
@@ -215,8 +215,8 @@ def extract_test_zip(self, test_path, *args, **kwargs):
215215 def extract_test_zip_raw (self , test_path , * args , ** kwargs ):
216216 return self .__extract (test_path , extract_zip_raw )
217217
218- def extract_test_tar (self , test_path , verbatim = False ):
219- return self .__extract (test_path , extract_tar , verbatim )
218+ def extract_test_tar (self , test_path , verbatim = False , filter = None ):
219+ return self .__extract (test_path , extract_tar , verbatim , filter )
220220
221221 def extract_test_tar_raw (self , test_path , * args , ** kwargs ):
222222 return self .__extract (test_path , extract_tar_raw )
0 commit comments