[minor] allow tests with longer timeout

This commit is contained in:
Rushabh Mehta 2017-07-20 14:54:09 +05:30
parent db6743cf3c
commit ebbad93d26

View file

@ -9,15 +9,16 @@ class TestTestRunner(unittest.TestCase):
for test in get_tests():
if test.startswith('#'):
continue
print('Running {0}...'.format(test))
timeout = 60
if '#' in test:
test, comment = test.split('#')
test = test.strip()
if comment=='long':
if comment.strip()=='long':
timeout = 240
print('Running {0}...'.format(test))
frappe.db.set_value('Test Runner', None, 'module_path', test)
frappe.db.commit()
driver.refresh()