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