| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. | 2 # Copyright 2014 The Chromium 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 """Compare the artifacts from two builds.""" | 6 """Compare the artifacts from two builds.""" |
| 7 | 7 |
| 8 import difflib | 8 import difflib |
| 9 import json | 9 import json |
| 10 import optparse | 10 import optparse |
| 11 import os | 11 import os |
| 12 import struct | 12 import struct |
| 13 import sys | 13 import sys |
| 14 import time | 14 import time |
| 15 | 15 |
| 16 from infra.libs.infra_types import freeze | 16 from recipe_engine.types import freeze |
| 17 | 17 |
| 18 BASE_DIR = os.path.dirname(os.path.abspath(__file__)) | 18 BASE_DIR = os.path.dirname(os.path.abspath(__file__)) |
| 19 | 19 |
| 20 | 20 |
| 21 # List of files that are known to be non deterministic. This is a "temporary" | 21 # List of files that are known to be non deterministic. This is a "temporary" |
| 22 # workaround to find regression on the deterministic builders. | 22 # workaround to find regression on the deterministic builders. |
| 23 # | 23 # |
| 24 # PNaCl general bug: https://crbug.com/429358 | 24 # PNaCl general bug: https://crbug.com/429358 |
| 25 # | 25 # |
| 26 # TODO(sebmarchand): Remove this once all the files are deterministic. | 26 # TODO(sebmarchand): Remove this once all the files are deterministic. |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 parser.error('--target-platform is required') | 686 parser.error('--target-platform is required') |
| 687 | 687 |
| 688 return compare_build_artifacts(os.path.abspath(options.first_build_dir), | 688 return compare_build_artifacts(os.path.abspath(options.first_build_dir), |
| 689 os.path.abspath(options.second_build_dir), | 689 os.path.abspath(options.second_build_dir), |
| 690 options.target_platform, | 690 options.target_platform, |
| 691 options.recursive) | 691 options.recursive) |
| 692 | 692 |
| 693 | 693 |
| 694 if __name__ == '__main__': | 694 if __name__ == '__main__': |
| 695 sys.exit(main()) | 695 sys.exit(main()) |
| OLD | NEW |