Commit e23c51c4 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 = b9e72d0990f398743623a6386357a748
\ No newline at end of file
......@@ -57,11 +57,19 @@ def main():
else:
start_time = datetime.datetime.now()
try:
dir = '${pyodide:location}' + '-script-test'
print(os.path.isdir(dir))
print(os.path.isdir('${pyodide:location}'))
print(os.path.isdir(dir + '/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