Commit cad966bd authored by Romain Courteaud's avatar Romain Courteaud

jstestnode: duration parameter should be an integer

parent ee9683f8
...@@ -80,7 +80,7 @@ def main(): ...@@ -80,7 +80,7 @@ def main():
'error_count': 0, 'error_count': 0,
'failure_count': failure, 'failure_count': failure,
'skip_count': 0, 'skip_count': 0,
'duration': elt.find_element_by_xpath('.//span[@class="runtime"]').text, 'duration': int(elt.find_element_by_xpath('.//span[@class="runtime"]').text.split()[0]),
'date': date, 'date': date,
'command': elt.find_element_by_xpath('.//a[text()="Rerun"]').get_attribute('href'), 'command': elt.find_element_by_xpath('.//a[text()="Rerun"]').get_attribute('href'),
'stdout': agent, 'stdout': agent,
...@@ -109,9 +109,10 @@ def main(): ...@@ -109,9 +109,10 @@ def main():
# report status back to Nexedi ERP5 # report status back to Nexedi ERP5
test_result_line.stop(**test_line_dict[test_result_line.name]) test_result_line.stop(**test_line_dict[test_result_line.name])
except Exception: except:
# Catch any exception here, to warn user instead of being silent, # Catch any exception here, to warn user instead of being silent,
# by generating fake error result # by generating fake error result
print traceback.format_exc()
result = dict(status_code=-1, result = dict(status_code=-1,
command=url, command=url,
stderr=traceback.format_exc(), stderr=traceback.format_exc(),
......
...@@ -106,7 +106,7 @@ mode = 0644 ...@@ -106,7 +106,7 @@ mode = 0644
[template-runTestSuite] [template-runTestSuite]
recipe = slapos.recipe.template recipe = slapos.recipe.template
url = ${:_profile_base_location_}/runTestSuite.in url = ${:_profile_base_location_}/runTestSuite.in
md5sum = 57c151675d13fdae1af82664ebe3269f md5sum = bc5ab8b49baf76a254a91aeea164a048
output = ${buildout:directory}/runTestSuite.in output = ${buildout:directory}/runTestSuite.in
mode = 0644 mode = 0644
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment