diff options
Diffstat (limited to 'support/testing/run-tests')
-rwxr-xr-x | support/testing/run-tests | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/support/testing/run-tests b/support/testing/run-tests index 07dad0d8b9..e560ec7720 100755 --- a/support/testing/run-tests +++ b/support/testing/run-tests @@ -23,6 +23,8 @@ def main(): parser.add_argument('-k', '--keep', help='keep build directories', action='store_true') + parser.add_argument('-j', '--jlevel', type=int, + help='BR2_JLEVEL to use for each testcase') args = parser.parse_args() @@ -70,6 +72,14 @@ def main(): BRTest.keepbuilds = args.keep + if args.jlevel: + if args.jlevel < 0: + print "Invalid BR2_JLEVEL to use for each testcase" + print "" + parser.print_help() + return 1 + BRTest.jlevel = args.jlevel + nose2_args = ["-v", "-s", "support/testing", "-c", "support/testing/conf/unittest.cfg"] |