Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Side by Side Diff: testing/scripts/cros_run_vm_tests.py

Issue 2927423002: cros_run_vm_tests.py for amd64_generic bots.
Patch Set: Unpin version Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright 2017 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import json
7 import os
8 import sys
9
10
11 import common
12
13
14 def main_run(args):
15 running_on_bot = True
16 if running_on_bot:
17 checkout = args.paths['checkout']
18 build_config_fs = args.build_config_fs
19 extra_sdk_args = ['--clear-sdk-cache']
20 extra_vm_test_args = ['--disable-kvm', '--no-display']
21 else:
22 checkout = '/usr/local/google/home/achuith/code/chrome/src/'
23 build_config_fs = 'Release'
24 extra_sdk_args = []
25 extra_vm_test_args = []
26
27 board = 'amd64-generic'
28 sdk_args = ['cros', 'chrome-sdk', '--board', board, '--download-vm',
29 '--internal']
30 vm_test_args = ['--', 'cros_run_vm_test', '--deploy', '--build-dir',
31 os.path.join(checkout, 'out_' + board, build_config_fs)]
32
33 run_args = sdk_args + extra_sdk_args + vm_test_args + extra_vm_test_args
34
35 rc = common.run_command(run_args, cwd=checkout)
36
37 failures = ['vm_sanity'] if rc else []
38
39 json.dump({
40 'valid': True,
41 'failures': failures
42 }, args.output)
43
44 return rc
45
46
47 def main_compile_targets(args):
48 json.dump([], args.output)
49
50
51 if __name__ == '__main__':
52 funcs = {
53 'run': main_run,
54 'compile_targets': main_compile_targets,
55 }
56 sys.exit(common.run_script(sys.argv[1:], funcs))
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698