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

Side by Side Diff: src/scripts/autotest

Issue 1603004: remove build_autotest.sh and change run_remote_tests.sh to use new autotest script. (Closed)
Patch Set: patch Created 10 years, 8 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 | src/scripts/build_autotest.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 # 6 #
7 # A python wrapper to call autotest ebuild. 7 # A python wrapper to call autotest ebuild.
8 8
9 import commands, logging, optparse, os, subprocess, sys 9 import commands, logging, optparse, os, subprocess, sys
10 10
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 if MyOptionPaser.help: 92 if MyOptionPaser.help:
93 if options.build: 93 if options.build:
94 print 94 print
95 print 'Options inherited from autotest_client, which is used in build', 95 print 'Options inherited from autotest_client, which is used in build',
96 print 'only mode.' 96 print 'only mode.'
97 run([AUTOTEST_CLIENT, '--help']) 97 run([AUTOTEST_CLIENT, '--help'])
98 else: 98 else:
99 print 99 print
100 print 'Options inherited from autoserv:' 100 print 'Options inherited from autoserv:'
101 run([AUTOSERV, '--help']) 101 run([AUTOSERV, '--help'])
102 sys.exit(-1) 102 sys.exit(0)
103 return options, args 103 return options, args
104 104
105 105
106 def assert_inside_chroot(common_sh): 106 def assert_inside_chroot(common_sh):
107 status, output = commands.getstatusoutput('/bin/bash -c ". %s && ' 107 status, output = commands.getstatusoutput('/bin/bash -c ". %s && '
108 'assert_inside_chroot"' % common_sh) 108 'assert_inside_chroot"' % common_sh)
109 if status is not 0: 109 if status is not 0:
110 print >> sys.stderr, output 110 print >> sys.stderr, output
111 sys.exit(status) 111 sys.exit(status)
112 112
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 else: 206 else:
207 ssh_key_file = os.path.join(os.path.dirname(me), 207 ssh_key_file = os.path.join(os.path.dirname(me),
208 'mod_for_test_scripts/ssh_keys/testing_rsa') 208 'mod_for_test_scripts/ssh_keys/testing_rsa')
209 os.chmod(ssh_key_file, 0400) 209 os.chmod(ssh_key_file, 0400)
210 run_autoserv(options.board, args) 210 run_autoserv(options.board, args)
211 211
212 212
213 if __name__ == '__main__': 213 if __name__ == '__main__':
214 main() 214 main()
215 215
OLDNEW
« no previous file with comments | « no previous file | src/scripts/build_autotest.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698