Bug 1279676: use --rebuild instead of --trigger-tests; r?armenzg draft
authorDustin J. Mitchell <dustin@mozilla.com>
Tue, 21 Jun 2016 18:50:55 +0000
changeset 380362 a9815ea9ccd9bac29df5e9ad3cd2d6a96569210e
parent 380361 5ac2f675c083d59ef6329d164cf92733ab344557
child 523710 ca7f236a6c7a6b2a2dd8590b9010a8d0422a4d42
push id21204
push userdmitchell@mozilla.com
push dateTue, 21 Jun 2016 18:51:07 +0000
reviewersarmenzg
bugs1279676
milestone50.0a1
Bug 1279676: use --rebuild instead of --trigger-tests; r?armenzg MozReview-Commit-ID: F7jc7AG0SCr
taskcluster/taskgraph/try_option_syntax.py
--- a/taskcluster/taskgraph/try_option_syntax.py
+++ b/taskcluster/taskgraph/try_option_syntax.py
@@ -150,17 +150,17 @@ class TryOptionSyntax(object):
         names.
 
         The resulting object has attributes:
 
         - build_types: a list containing zero or more of 'opt' and 'debug'
         - platforms: a list of selected platform names, or None for all
         - unittests: a list of tests, of the form given below, or None for all
         - jobs: a list of requested job names, or None for all
-        - trigger_tests: the number of times tests should be triggered
+        - trigger_tests: the number of times tests should be triggered (--rebuild)
         - interactive; true if --interactive
 
         Note that -t is currently completely ignored.
 
         The unittests and talos lists contain dictionaries of the form:
 
         {
             'test': '<suite name>',
@@ -194,17 +194,17 @@ class TryOptionSyntax(object):
                             dest='platforms', const='all', default='all')
         parser.add_argument('-u', '--unittests', nargs='?',
                             dest='unittests', const='all', default='all')
         parser.add_argument('-t', '--talos', nargs='?', dest='talos', const='all', default='all')
         parser.add_argument('-i', '--interactive',
                             dest='interactive', action='store_true', default=False)
         parser.add_argument('-j', '--job', dest='jobs', action='append')
         # In order to run test jobs multiple times
-        parser.add_argument('--trigger-tests', dest='trigger_tests', type=int, default=1)
+        parser.add_argument('--rebuild', dest='trigger_tests', type=int, default=1)
         args, _ = parser.parse_known_args(parts[try_idx:])
 
         self.jobs = self.parse_jobs(args.jobs)
         self.build_types = self.parse_build_types(args.build_types)
         self.platforms = self.parse_platforms(args.platforms)
         self.unittests = self.parse_test_option(
             "unittest_try_name", args.unittests, full_task_graph)
         self.talos = self.parse_test_option("talos_try_name", args.talos, full_task_graph)