Bug 931279 - Follow-up on mach support for mochitest --start-at and --end-at. r=jmaher
authorFelipe Gomes <felipc@gmail.com>
Fri, 01 Nov 2013 17:23:32 -0200
changeset 153143 9720ae71914da92ac3c841dbd5cb3e800cb02589
parent 153142 395f6bf32ca0e5d98234bef0500b37c036ceb016
child 153144 fdc73bb2dba896f7541027e989dabd0c4d6167fb
push id3291
push userfelipc@gmail.com
push dateFri, 01 Nov 2013 19:24:03 +0000
treeherderfx-team@fdc73bb2dba8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjmaher
bugs931279
milestone28.0a1
Bug 931279 - Follow-up on mach support for mochitest --start-at and --end-at. r=jmaher
testing/mochitest/mach_commands.py
--- a/testing/mochitest/mach_commands.py
+++ b/testing/mochitest/mach_commands.py
@@ -391,16 +391,24 @@ def MochitestCommand(func):
              'Only available when running a single test. Default cap is 30 runs, ' \
              'which can be overwritten with the --repeat parameter.')
     func = runUntilFailure(func)
 
     slow = CommandArgument('--slow', action='store_true',
         help='Delay execution between tests.')
     func = slow(func)
 
+    end_at = CommandArgument('--end-at', type=str,
+        help='Stop running the test sequence at this test.')
+    func = end_at(func)
+
+    start_at = CommandArgument('--start-at', type=str,
+        help='Start running the test sequence at this test.')
+    func = start_at(func)
+
     chunk_dir = CommandArgument('--chunk-by-dir', type=int,
         help='Group tests together in chunks by this many top directories.')
     func = chunk_dir(func)
 
     chunk_total = CommandArgument('--total-chunks', type=int,
         help='Total number of chunks to split tests into.')
     func = chunk_total(func)
 
@@ -461,24 +469,16 @@ def B2GCommand(func):
     chunk_total = CommandArgument('--total-chunks', type=int,
         help='Total number of chunks to split tests into.')
     func = chunk_total(func)
 
     this_chunk = CommandArgument('--this-chunk', type=int,
         help='If running tests by chunks, the number of the chunk to run.')
     func = this_chunk(func)
 
-    start_at = CommandArgument('--start-at', type=str,
-        help='Start running the test sequence at this test.')
-    func = start_at(func)
-
-    end_at = CommandArgument('--end-at', type=str,
-        help='Stop running the test sequence at this test.')
-    func = end_at(func)
-
     path = CommandArgument('test_file', default=None, nargs='?',
         metavar='TEST',
         help='Test to run. Can be specified as a single file, a ' \
             'directory, or omitted. If omitted, the entire test suite is ' \
             'executed.')
     func = path(func)
 
     return func