Commit 4de63069 authored by Boxiang Sun's avatar Boxiang Sun

pyodide test suite amending

parent 194f047f
......@@ -18,4 +18,4 @@ md5sum = e4e96f0f08b8de6807a24f43fce34b40
[template-runTestSuite]
filename = runTestSuite.in
md5sum = 4c4f50349862d79b8e46902f7b5517de
\ No newline at end of file
md5sum = 0ba05e74060e8cb2ac632d5fbfefba31
\ No newline at end of file
......@@ -57,11 +57,15 @@ def main():
else:
start_time = datetime.datetime.now()
try:
print('${pyodide:location}' + '-script-test')
result_string = check_output(['pytest', '--timeout=5', './test/test_common.py'],
cwd='${pyodide:location}',
cwd='${pyodide:location}' + '-script-test',
env=env) # temporary solution for not block by xfailed tests too long
except Exception, e:
except OSError, e:
result_string = str(e.strerror)
except Exception, e: # except CalledProcessError, e:
result_string = str(e.output)
print('${pyodide:location}')
print(result_string)
test_result_content = result_string.split('\n')
print('---------------------')
......
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