Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: test/test262/archive.py

Issue 2640223003: Revert of [test] Speculatively remove local-tests from archive (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | test/test262/list.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2016 the V8 project authors. All rights reserved. 2 # Copyright 2016 the V8 project authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 import os 6 import os
7 import sys 7 import sys
8 import tarfile 8 import tarfile
9 import time 9 import time
10 10
(...skipping 11 matching lines...) Expand all
22 if tar_info.name.startswith(os.path.join('data', '.git')) or \ 22 if tar_info.name.startswith(os.path.join('data', '.git')) or \
23 tar_info.name.startswith(os.path.join('harness', '.git')): 23 tar_info.name.startswith(os.path.join('harness', '.git')):
24 return None 24 return None
25 else: 25 else:
26 tar_info.uname = tar_info.gname = "test262" 26 tar_info.uname = tar_info.gname = "test262"
27 return tar_info 27 return tar_info
28 28
29 with tarfile.open('data.tar', 'w') as tar: 29 with tarfile.open('data.tar', 'w') as tar:
30 tar.add('data', filter=filter_git) 30 tar.add('data', filter=filter_git)
31 tar.add('harness', filter=filter_git) 31 tar.add('harness', filter=filter_git)
32 tar.add('local-tests')
32 33
33 # Workaround for GN. We can't specify the tarfile as output because it's 34 # Workaround for GN. We can't specify the tarfile as output because it's
34 # not in the product directory. Therefore we track running of this script 35 # not in the product directory. Therefore we track running of this script
35 # with an extra stamp file in the product directory. 36 # with an extra stamp file in the product directory.
36 if len(sys.argv) == 2: 37 if len(sys.argv) == 2:
37 with open(STAMP_FILE, 'w') as f: 38 with open(STAMP_FILE, 'w') as f:
38 f.write(str(time.time())) 39 f.write(str(time.time()))
OLDNEW
« no previous file with comments | « no previous file | test/test262/list.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698