Commit 772359d4 authored by Boxiang Sun's avatar Boxiang Sun Committed by gsamain

Ammend the test for Cython nogil

Compare the result which generated from Cython environment
Instead print a determined string
parent 89276735
...@@ -15,4 +15,4 @@ repository = https://lab.nexedi.com/Daetalus/cython.git ...@@ -15,4 +15,4 @@ repository = https://lab.nexedi.com/Daetalus/cython.git
location = ${buildout:parts-directory}/${:_buildout_section_name_} location = ${buildout:parts-directory}/${:_buildout_section_name_}
git-binary = ${git:location}/bin/git git-binary = ${git:location}/bin/git
python3-binary = ${python3.5:location}/bin/python3 python3-binary = ${python3.5:location}/bin/python3
command = (${:git-binary} clone --quiet ${:repository} ${:location} && cd ${:location} && ${:git-binary} checkout nogil_extension && ${:python3-binary} setup.py install && ${:python3-binary} test.py build_ext --inplace) command = (([ -d ${:location} ] && (rm -rf ${:location}) || :) && ${:git-binary} clone --quiet ${:repository} ${:location} && cd ${:location} && ${:git-binary} checkout nogil_extension && ${:python3-binary} setup.py install && ${:python3-binary} test.py build_ext --inplace)
\ No newline at end of file \ No newline at end of file
...@@ -19,4 +19,4 @@ md5sum = 21e0f69f6d89f60d5a00acf8e059dffa ...@@ -19,4 +19,4 @@ md5sum = 21e0f69f6d89f60d5a00acf8e059dffa
[template-runTestSuite] [template-runTestSuite]
filename = runTestSuite.in filename = runTestSuite.in
md5sum = f7beb4566afc61ab58b96e41b07ae829 md5sum = 7ee5c01c169578837be014f68fed7754
...@@ -49,7 +49,7 @@ def main(): ...@@ -49,7 +49,7 @@ def main():
cwd='${cython_nogil:location}', cwd='${cython_nogil:location}',
env={'CI': 'true'}) env={'CI': 'true'})
# result_dict = json.loads(result_string) # result_dict = json.loads(result_string)
result_failed = 0 if 'done' in result_string else 1 result_failed = 0 if '2.732' in result_string else 1
# for result in result_dict['tests']: # for result in result_dict['tests']:
test_line_dict['%s: %s' % ('Cython test', 'nogil extension initialization')] = { test_line_dict['%s: %s' % ('Cython test', 'nogil extension initialization')] = {
'test_count': 1, 'test_count': 1,
...@@ -80,7 +80,8 @@ def main(): ...@@ -80,7 +80,8 @@ def main():
break break
print 'Submitting: "%s"' % test_result_line.name print 'Submitting: "%s"' % test_result_line.name
print test_line_dict['Cython test: basic test'] print test_line_dict['Cython test: nogil extension initialization']
print result_string
# 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])
......
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