diff options
author | Ricardo Martincoski <ricardo.martincoski@gmail.com> | 2017-06-28 23:45:47 -0300 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-07-01 16:05:14 +0200 |
commit | 1df8042eadb818e2f7ed3ecac7d8e804efa8b542 (patch) | |
tree | f92f4d1c69430859816e7f9f49ed25069b6ad269 /support/testing/run-tests | |
parent | abe64676d58c6099f363cd6b2199d7804a9bf953 (diff) | |
download | buildroot-1df8042eadb818e2f7ed3ecac7d8e804efa8b542.tar.gz buildroot-1df8042eadb818e2f7ed3ecac7d8e804efa8b542.zip |
support/testing: allow to set BR2_JLEVEL
Let the user to override the default BR2_JLEVEL used for each testcase.
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
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"] |