Bump buildroot to 2019.02
This commit is contained in:
@@ -5,7 +5,7 @@ import os
|
||||
import nose2
|
||||
import multiprocessing
|
||||
|
||||
from infra.basetest import BRTest
|
||||
from infra.basetest import BRConfigTest
|
||||
|
||||
|
||||
def main():
|
||||
@@ -38,10 +38,10 @@ def main():
|
||||
test_dir = os.path.dirname(script_path)
|
||||
|
||||
if args.stdout:
|
||||
BRTest.logtofile = False
|
||||
BRConfigTest.logtofile = False
|
||||
|
||||
if args.list:
|
||||
print "List of tests"
|
||||
print("List of tests")
|
||||
nose2.discover(argv=[script_path,
|
||||
"-s", test_dir,
|
||||
"-v",
|
||||
@@ -52,37 +52,36 @@ def main():
|
||||
if args.download is None:
|
||||
args.download = os.getenv("BR2_DL_DIR")
|
||||
if args.download is None:
|
||||
print "Missing download directory, please use -d/--download"
|
||||
print ""
|
||||
print("Missing download directory, please use -d/--download")
|
||||
print("")
|
||||
parser.print_help()
|
||||
return 1
|
||||
|
||||
BRTest.downloaddir = os.path.abspath(args.download)
|
||||
os.putenv("BR2_DL_DIR", BRTest.downloaddir)
|
||||
BRConfigTest.downloaddir = os.path.abspath(args.download)
|
||||
|
||||
if args.output is None:
|
||||
print "Missing output directory, please use -o/--output"
|
||||
print ""
|
||||
print("Missing output directory, please use -o/--output")
|
||||
print("")
|
||||
parser.print_help()
|
||||
return 1
|
||||
|
||||
if not os.path.exists(args.output):
|
||||
os.mkdir(args.output)
|
||||
|
||||
BRTest.outputdir = os.path.abspath(args.output)
|
||||
BRConfigTest.outputdir = os.path.abspath(args.output)
|
||||
|
||||
if args.all is False and len(args.testname) == 0:
|
||||
print "No test selected"
|
||||
print ""
|
||||
print("No test selected")
|
||||
print("")
|
||||
parser.print_help()
|
||||
return 1
|
||||
|
||||
BRTest.keepbuilds = args.keep
|
||||
BRConfigTest.keepbuilds = args.keep
|
||||
|
||||
if args.testcases != 1:
|
||||
if args.testcases < 1:
|
||||
print "Invalid number of testcases to run simultaneously"
|
||||
print ""
|
||||
print("Invalid number of testcases to run simultaneously")
|
||||
print("")
|
||||
parser.print_help()
|
||||
return 1
|
||||
# same default BR2_JLEVEL as package/Makefile.in
|
||||
@@ -90,23 +89,23 @@ def main():
|
||||
each_testcase = br2_jlevel / args.testcases
|
||||
if each_testcase < 1:
|
||||
each_testcase = 1
|
||||
BRTest.jlevel = each_testcase
|
||||
BRConfigTest.jlevel = each_testcase
|
||||
|
||||
if args.jlevel:
|
||||
if args.jlevel < 0:
|
||||
print "Invalid BR2_JLEVEL to use for each testcase"
|
||||
print ""
|
||||
print("Invalid BR2_JLEVEL to use for each testcase")
|
||||
print("")
|
||||
parser.print_help()
|
||||
return 1
|
||||
# the user can override the auto calculated value
|
||||
BRTest.jlevel = args.jlevel
|
||||
BRConfigTest.jlevel = args.jlevel
|
||||
|
||||
if args.timeout_multiplier < 1:
|
||||
print "Invalid multiplier for timeout values"
|
||||
print ""
|
||||
print("Invalid multiplier for timeout values")
|
||||
print("")
|
||||
parser.print_help()
|
||||
return 1
|
||||
BRTest.timeout_multiplier = args.timeout_multiplier
|
||||
BRConfigTest.timeout_multiplier = args.timeout_multiplier
|
||||
|
||||
nose2_args = ["-v",
|
||||
"-N", str(args.testcases),
|
||||
|
||||
Reference in New Issue
Block a user