| OLD | NEW |
| 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Create a CL to update the SKP version.""" | 5 """Create a CL to update the SKP version.""" |
| 6 | 6 |
| 7 | 7 |
| 8 import os | 8 import os |
| 9 import re | 9 import re |
| 10 import sys | 10 import sys |
| 11 import time | 11 import time |
| 12 | 12 |
| 13 from build_step import BuildStep | 13 from build_step import BuildStep |
| 14 from config_private import SKIA_GIT_URL | 14 from config_private import SKIA_GIT_URL |
| 15 from utils.git_utils import GIT | 15 from py.utils.git_utils import GIT |
| 16 from utils import misc | 16 from py.utils import misc |
| 17 from utils import shell_utils | 17 from py.utils import shell_utils |
| 18 | 18 |
| 19 | 19 |
| 20 CHROMIUM_SKIA = 'https://chromium.googlesource.com/skia.git' | 20 CHROMIUM_SKIA = 'https://chromium.googlesource.com/skia.git' |
| 21 COMMIT_MSG = '''Update SKP version to %s | 21 COMMIT_MSG = '''Update SKP version to %s |
| 22 | 22 |
| 23 Automatic commit by the RecreateSKPs bot. | 23 Automatic commit by the RecreateSKPs bot. |
| 24 | 24 |
| 25 TBR= | 25 TBR= |
| 26 ''' | 26 ''' |
| 27 PATH_TO_SKIA = os.path.join('third_party', 'skia') | 27 PATH_TO_SKIA = os.path.join('third_party', 'skia') |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 wait() | 89 wait() |
| 90 while not bexpect.all_trybots_finished(codereview_url): | 90 while not bexpect.all_trybots_finished(codereview_url): |
| 91 wait() | 91 wait() |
| 92 | 92 |
| 93 # Add trybot results as new expectations. | 93 # Add trybot results as new expectations. |
| 94 bexpect.gen_bench_expectations_from_codereview(codereview_url) | 94 bexpect.gen_bench_expectations_from_codereview(codereview_url) |
| 95 | 95 |
| 96 | 96 |
| 97 if '__main__' == __name__: | 97 if '__main__' == __name__: |
| 98 sys.exit(BuildStep.RunBuildStep(UpdateSkpVersion)) | 98 sys.exit(BuildStep.RunBuildStep(UpdateSkpVersion)) |
| OLD | NEW |