2016-02-29 13:57:31 +00:00
|
|
|
#!/usr/bin/env python
|
|
|
|
#
|
|
|
|
# Copyright 2016 Google Inc.
|
|
|
|
#
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
|
|
|
|
import argparse
|
|
|
|
import common
|
|
|
|
import os
|
|
|
|
import sys
|
2016-03-04 18:58:20 +00:00
|
|
|
import utils
|
2016-02-29 13:57:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
parser = argparse.ArgumentParser()
|
|
|
|
parser.add_argument('--master_name', required=True)
|
|
|
|
parser.add_argument('--builder_name', required=True)
|
|
|
|
parser.add_argument('--build_number', required=True)
|
|
|
|
parser.add_argument('--slave_name', required=True)
|
|
|
|
parser.add_argument('--revision', required=True)
|
|
|
|
parser.add_argument('--swarm_out_dir', required=True)
|
2016-03-08 13:33:03 +00:00
|
|
|
parser.add_argument('--issue')
|
|
|
|
parser.add_argument('--patchset')
|
2016-02-29 13:57:31 +00:00
|
|
|
args = parser.parse_args()
|
2016-03-04 18:58:20 +00:00
|
|
|
with utils.print_timings():
|
|
|
|
bot = common.BotInfo(args.builder_name, os.path.abspath(args.swarm_out_dir))
|
|
|
|
bot.test_steps(args.revision, args.master_name, args.slave_name,
|
2016-03-08 13:33:03 +00:00
|
|
|
args.build_number, issue=args.issue or None,
|
|
|
|
patchset=args.patchset or None)
|
2016-02-29 13:57:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
main()
|