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():
'error_count': 0,
'failure_count': failure,
'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,
'command': elt.find_element_by_xpath('.//a[text()="Rerun"]').get_attribute('href'),
'stdout': agent,
......@@ -109,9 +109,10 @@ def main():
# report status back to Nexedi ERP5
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,
# by generating fake error result
print traceback.format_exc()
result = dict(status_code=-1,
command=url,
stderr=traceback.format_exc(),
......
......@@ -106,7 +106,7 @@ mode = 0644
[template-runTestSuite]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/runTestSuite.in
md5sum = 57c151675d13fdae1af82664ebe3269f
md5sum = bc5ab8b49baf76a254a91aeea164a048
output = ${buildout:directory}/runTestSuite.in
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