From dab00363f1ee1a320a81650b8fa6af780b94c31e Mon Sep 17 00:00:00 2001 From: Darin Petkov Date: Wed, 7 Apr 2010 17:16:54 -0700 Subject: [PATCH] Fix 'autotest' defaults -- i.e., fail when tests fail to build, just like build_autotest. This unmasks some test build failures that are currently happenning. Review URL: http://codereview.chromium.org/1582017 --- autotest | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/autotest b/autotest index 7877dd2be5..85ace9a9ff 100755 --- a/autotest +++ b/autotest @@ -58,14 +58,20 @@ parser.allow_interspersed_args = True DEFAULT_BOARD = os.environ.get('DEFAULT_BOARD', '') parser.add_option('--autox', dest='autox', action='store_true', - help='Build autox along with autotest.') + default=True, + help='Build autox along with autotest [default].') +parser.add_option('--noautox', dest='autox', action='store_false', + help='Don\'t build autox along with autotest.') parser.add_option('--board', dest='board', action='store', default=DEFAULT_BOARD, help='The board for which you are building autotest.') parser.add_option('--build', dest='build', action='store', help='Only prebuild client tests, do not run tests.') parser.add_option('--buildcheck', dest='buildcheck', action='store_true', - help='Fail if tests fail to build.') + default=True, + help='Fail if tests fail to build [default].') +parser.add_option('--nobuildcheck', dest='buildcheck', action='store_false', + help='Ignore test build failures.') parser.add_option('--jobs', dest='jobs', action='store', type=int, default=-1, help='How many packages to build in parallel at maximum.') @@ -214,4 +220,3 @@ def main(): if __name__ == '__main__': main() -