Commit 242a2869 authored by Boxiang Sun's avatar Boxiang Sun

Expose the message for pyodide tests

parent b74a6428
...@@ -76,19 +76,17 @@ def main(): ...@@ -76,19 +76,17 @@ def main():
# === 21 passed, 1 warnings, 42 error in 130.43 seconds === # === 21 passed, 1 warnings, 42 error in 130.43 seconds ===
test_result_statistic = test_result_statistic_line.split(' ') test_result_statistic = test_result_statistic_line.split(' ')
print(test_result_statistic) print(test_result_statistic)
# result_string = test_module.run(env, 'firefox --help') duration = test_result_statistic[-3]
# end_time = datetime.datetime.now() failed = int(test_result_statistic[5])
duration = test_result_statistic[-3] # (end_time - start_time).total_seconds() stdout = result_string
failed = 0 #result_string['failed']
stdout = result_string # result_string['stdout']
test_line_dict['%s: %s' % ('Pyodide test', test_name)] = { test_line_dict['%s: %s' % ('Pyodide test', test_name)] = {
'test_count': int(test_result_statistic[1]), 'test_count': int(test_result_statistic[1]),
'error_count': 0, 'error_count': 0,
'failure_count': 0, #failed, 'failure_count': failed,
'skip_count': int(test_result_statistic[5]), 'skip_count': 0,
'duration': float(duration), 'duration': float(duration),
'command': '', 'command': '',
'stdout': "stdout", 'stdout': stdout,
'stderr': '', 'stderr': '',
'html_test_result': '', 'html_test_result': '',
} }
......
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