mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-03 07:21:45 -09:00
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:
committed by
Thomas Petazzoni
parent
abe64676d5
commit
1df8042ead
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user