|
@@ -70,7 +70,7 @@ def main():
|
|
|
|
|
|
BRConfigTest.outputdir = os.path.abspath(args.output)
|
|
BRConfigTest.outputdir = os.path.abspath(args.output)
|
|
|
|
|
|
- if args.all is False and len(args.testname) == 0:
|
|
|
|
|
|
+ if args.all is False and not args.testname:
|
|
print("No test selected")
|
|
print("No test selected")
|
|
print("")
|
|
print("")
|
|
parser.print_help()
|
|
parser.print_help()
|
|
@@ -112,7 +112,7 @@ def main():
|
|
"-s", test_dir,
|
|
"-s", test_dir,
|
|
"-c", os.path.join(test_dir, "conf/unittest.cfg")]
|
|
"-c", os.path.join(test_dir, "conf/unittest.cfg")]
|
|
|
|
|
|
- if len(args.testname) != 0:
|
|
|
|
|
|
+ if args.testname:
|
|
nose2_args += args.testname
|
|
nose2_args += args.testname
|
|
|
|
|
|
nose2.discover(argv=nose2_args)
|
|
nose2.discover(argv=nose2_args)
|