Index: infra/bots/compile_skia.py |
diff --git a/infra/bots/compile_skia.py b/infra/bots/compile_skia.py |
index b3b625121fe371cf127b380f55d71a35f50b2bae..ca2c7db600b38436128289f0f10ec5533ba127eb 100644 |
--- a/infra/bots/compile_skia.py |
+++ b/infra/bots/compile_skia.py |
@@ -6,17 +6,19 @@ |
# found in the LICENSE file. |
+import argparse |
import common |
+import os |
import sys |
def main(): |
- if len(sys.argv) != 3: |
- print >> sys.stderr, 'Usage: compile_skia.py <builder name> <out-dir>' |
- sys.exit(1) |
- bot = common.BotInfo(sys.argv[1], 'fake-slave', sys.argv[2]) |
- for t in bot.build_targets: |
- bot.flavor.compile(t) |
+ parser = argparse.ArgumentParser() |
+ parser.add_argument('--builder_name', required=True) |
+ parser.add_argument('--swarm_out_dir', required=True) |
+ args = parser.parse_args() |
+ bot = common.BotInfo(args.builder_name, os.path.abspath(args.swarm_out_dir)) |
+ bot.compile_steps() |
if __name__ == '__main__': |