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

Unified Diff: src/scripts/autotest

Issue 1794004: Added --test_args parameter that passes its value as -a flag to autoserv. (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: Parse --args with optparser in autotest 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/scripts/run_remote_tests.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/autotest
diff --git a/src/scripts/autotest b/src/scripts/autotest
index 85479ce5cb5a882fbbdb6b1adfbc10cb62300c32..ad4f0800f911291e79c7a1134d76388a2e49fc8b 100755
--- a/src/scripts/autotest
+++ b/src/scripts/autotest
@@ -57,6 +57,9 @@ parser.allow_interspersed_args = True
DEFAULT_BOARD = os.environ.get('DEFAULT_BOARD', '')
+parser.add_option('--args', dest='args', action='store',
+ default='',
+ help='The arguments to pass to the test control file.')
parser.add_option('--autox', dest='autox', action='store_true',
default=True,
help='Build autox along with autotest [default].')
@@ -188,12 +191,14 @@ def build_autotest(options):
return run(emerge_cmd)
-def run_autoserv(board, args):
+def run_autoserv(options, args):
environ = os.environ
+
+ environ['AUTOSERV_TEST_ARGS'] = options.args
environ['AUTOSERV_ARGS'] = ' '.join(args)
environ['FEATURES'] = ('%s -buildpkg -digest noauto' %
environ.get('FEATURES', ''))
- ebuild_cmd = ['ebuild-%s' % board,
+ ebuild_cmd = ['ebuild-%s' % options.board,
'../third_party/chromiumos-overlay/chromeos-base/'
'autotest/autotest-0.0.1.ebuild',
'clean', 'unpack', 'test']
@@ -216,7 +221,7 @@ def main():
ssh_key_file = os.path.join(os.path.dirname(me),
'mod_for_test_scripts/ssh_keys/testing_rsa')
os.chmod(ssh_key_file, 0400)
- run_autoserv(options.board, args)
+ run_autoserv(options, args)
if __name__ == '__main__':
« no previous file with comments | « no previous file | src/scripts/run_remote_tests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698