openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #25431
How to set up the unit test environment of cinder?
Hi
Can anyone tell me how to set up cinder unit test environment?
Usually, I download the cinder code and run script run_test.sh.
But, now it can not work. This is the error msg:
root@ubuntu:/home/cinder-master# ./run_tests.sh -N -P
Running ` python setup.py testr --testr-args='--subunit --concurrency 1 '`
bash: tools/colorizer.py: Permission denied
Traceback (most recent call last):
File "/usr/local/bin/subunit-2to1", line 5, in <module>
pkg_resources.run_script('python-subunit==0.0.13', 'subunit-2to1')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 505, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1245, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/python_subunit-0.0.13-py2.7.egg/EGG-INFO/scripts/subunit-2to1", line 46, in <module>
main()
File "/usr/local/lib/python2.7/dist-packages/python_subunit-0.0.13-py2.7.egg/EGG-INFO/scripts/subunit-2to1", line 40, in main
case.run(result)
File "/usr/local/lib/python2.7/dist-packages/python_subunit-0.0.13-py2.7.egg/subunit/v2.py", line 255, in run
self._parse_packet(result)
File "/usr/local/lib/python2.7/dist-packages/python_subunit-0.0.13-py2.7.egg/subunit/v2.py", line 324, in _parse_packet
self._parse(packet, result)
File "/usr/local/lib/python2.7/dist-packages/python_subunit-0.0.13-py2.7.egg/subunit/v2.py", line 440, in _parse
route_code=route_code, timestamp=timestamp)
File "/usr/local/lib/python2.7/dist-packages/testtools-0.9.32-py2.7.egg/testtools/testresult/real.py", line 1441, in status
test_id=test_id, test_status=test_status, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/testtools-0.9.32-py2.7.egg/testtools/testresult/real.py", line 651, in status
self.on_test(self._inprogress.pop(key))
File "/usr/local/lib/python2.7/dist-packages/testtools-0.9.32-py2.7.egg/testtools/testresult/real.py", line 1453, in _handle_tests
case.run(self.decorated)
File "/usr/local/lib/python2.7/dist-packages/testtools-0.9.32-py2.7.egg/testtools/testcase.py", line 678, in run
result.startTest(self)
File "/usr/local/lib/python2.7/dist-packages/testtools-0.9.32-py2.7.egg/testtools/testresult/real.py", line 1247, in startTest
return self.decorated.startTest(test)
File "/usr/local/lib/python2.7/dist-packages/testtools-0.9.32-py2.7.egg/testtools/testresult/real.py", line 1247, in startTest
return self.decorated.startTest(test)
File "/usr/local/lib/python2.7/dist-packages/python_subunit-0.0.13-py2.7.egg/subunit/__init__.py", line 764, in startTest
self._stream.flush()
IOError: [Errno 32] Broken pipe
[Errno 32] Broken pipe
error: testr failed (3)
Follow ups