From 499afc168be1c7c5d5269a680f633423c76183fc Mon Sep 17 00:00:00 2001 From: Felipe Gomes Date: Fri, 1 Nov 2013 17:23:32 -0200 Subject: [PATCH] Bug 931279 - Follow-up on mach support for mochitest --start-at and --end-at. r=jmaher --- testing/mochitest/mach_commands.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/testing/mochitest/mach_commands.py b/testing/mochitest/mach_commands.py index 311ed0b166b9..6269c71ca29b 100644 --- a/testing/mochitest/mach_commands.py +++ b/testing/mochitest/mach_commands.py @@ -396,6 +396,14 @@ def MochitestCommand(func): 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) @@ -466,14 +474,6 @@ def B2GCommand(func): 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 ' \