summaryrefslogtreecommitdiffstats
path: root/support/testing/run-tests
diff options
context:
space:
mode:
authorRicardo Martincoski <ricardo.martincoski@gmail.com>2017-06-28 23:45:47 -0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-07-01 16:05:14 +0200
commit1df8042eadb818e2f7ed3ecac7d8e804efa8b542 (patch)
treef92f4d1c69430859816e7f9f49ed25069b6ad269 /support/testing/run-tests
parentabe64676d58c6099f363cd6b2199d7804a9bf953 (diff)
downloadbuildroot-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-xsupport/testing/run-tests10
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"]
OpenPOWER on IntegriCloud