OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright 2014 the V8 project authors. All rights reserved. | 2 # Copyright 2014 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 argparse | 6 import argparse |
7 import json | 7 import json |
8 import os | 8 import os |
9 import sys | 9 import sys |
10 import urllib | 10 import urllib |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 "--author", self._options.author, | 92 "--author", self._options.author, |
93 "--reviewer", self._options.reviewer, | 93 "--reviewer", self._options.reviewer, |
94 "--chromium", self._options.chromium, | 94 "--chromium", self._options.chromium, |
95 "--use-commit-queue", | 95 "--use-commit-queue", |
96 ] | 96 ] |
97 if self._options.sheriff: | 97 if self._options.sheriff: |
98 args.extend([ | 98 args.extend([ |
99 "--sheriff", "--googlers-mapping", self._options.googlers_mapping]) | 99 "--sheriff", "--googlers-mapping", self._options.googlers_mapping]) |
100 if self._options.dry_run: | 100 if self._options.dry_run: |
101 args.extend(["--dry-run"]) | 101 args.extend(["--dry-run"]) |
| 102 if self._options.work_dir: |
| 103 args.extend(["--work-dir", self._options.work_dir]) |
102 self._side_effect_handler.Call(chromium_roll.ChromiumRoll().Run, args) | 104 self._side_effect_handler.Call(chromium_roll.ChromiumRoll().Run, args) |
103 | 105 |
104 | 106 |
105 class AutoRoll(ScriptsBase): | 107 class AutoRoll(ScriptsBase): |
106 def _PrepareOptions(self, parser): | 108 def _PrepareOptions(self, parser): |
107 parser.add_argument("-c", "--chromium", required=True, | 109 parser.add_argument("-c", "--chromium", required=True, |
108 help=("The path to your Chromium src/ " | 110 help=("The path to your Chromium src/ " |
109 "directory to automate the V8 roll.")) | 111 "directory to automate the V8 roll.")) |
110 parser.add_argument("--roll", help="Call Chromium roll script.", | 112 parser.add_argument("--roll", help="Call Chromium roll script.", |
111 default=False, action="store_true") | 113 default=False, action="store_true") |
(...skipping 18 matching lines...) Expand all Loading... |
130 CheckActiveRoll, | 132 CheckActiveRoll, |
131 DetectLastPush, | 133 DetectLastPush, |
132 DetectLastRoll, | 134 DetectLastRoll, |
133 CheckClusterFuzz, | 135 CheckClusterFuzz, |
134 RollChromium, | 136 RollChromium, |
135 ] | 137 ] |
136 | 138 |
137 | 139 |
138 if __name__ == "__main__": # pragma: no cover | 140 if __name__ == "__main__": # pragma: no cover |
139 sys.exit(AutoRoll().Run()) | 141 sys.exit(AutoRoll().Run()) |
OLD | NEW |