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>
This commit is contained in:
Ricardo Martincoski
2017-06-28 23:45:47 -03:00
committed by Thomas Petazzoni
parent abe64676d5
commit 1df8042ead
2 changed files with 15 additions and 1 deletions

View File

@@ -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"]