##// END OF EJS Templates
Simplify parsing -j arg
Thomas Kluyver -
Show More
@@ -387,7 +387,7 b' def main():'
387 'all tests.')
387 'all tests.')
388 parser.add_argument('--all', action='store_true',
388 parser.add_argument('--all', action='store_true',
389 help='Include slow tests not run by default.')
389 help='Include slow tests not run by default.')
390 parser.add_argument('-j', '--fast', nargs='?', const=None, default=1,
390 parser.add_argument('-j', '--fast', nargs='?', const=None, default=1, type=int,
391 help='Run test sections in parallel.')
391 help='Run test sections in parallel.')
392 parser.add_argument('--xunit', action='store_true',
392 parser.add_argument('--xunit', action='store_true',
393 help='Produce Xunit XML results')
393 help='Produce Xunit XML results')
@@ -397,12 +397,6 b' def main():'
397
397
398 options = parser.parse_args()
398 options = parser.parse_args()
399
399
400 try:
401 options.fast = int(options.fast)
402 except TypeError:
403 pass
404
405 # This starts subprocesses
406 run_iptestall(options)
400 run_iptestall(options)
407
401
408
402
General Comments 0
You need to be logged in to leave comments. Login now