OLD | NEW |
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 Loading... |
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())) |
OLD | NEW |