##// END OF EJS Templates
fix undefined js_enabled on `iptest —all`
MinRK -
Show More
@@ -335,7 +335,7 b' def prepare_controllers(options):'
335 335 """Returns two lists of TestController instances, those to run, and those
336 336 not to run."""
337 337 testgroups = options.testgroups
338
338 js_enabled = True
339 339 if testgroups:
340 340 py_testgroups = [g for g in testgroups if (g in py_test_group_names) \
341 341 or g.startswith('IPython.')]
@@ -346,10 +346,11 b' def prepare_controllers(options):'
346 346 js_enabled = len(js_testgroups) > 0
347 347 else:
348 348 py_testgroups = py_test_group_names
349 js_testgroups = all_js_groups()
350 349 if not options.all:
351 js_enabled = False
350 js_testgroups = []
352 351 test_sections['parallel'].enabled = False
352 else:
353 js_testgroups = all_js_groups()
353 354
354 355 c_js = [JSController(name, js_enabled) for name in js_testgroups]
355 356 c_py = [PyTestController(name, options) for name in py_testgroups]
General Comments 0
You need to be logged in to leave comments. Login now