[minor] allow tests with longer timeout
This commit is contained in:
parent
db6743cf3c
commit
ebbad93d26
1 changed files with 3 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue