<html><body>
<p><font size="2" face="sans-serif">Hi,</font><br>
<font size="2" face="sans-serif">There have been some changes in the test environment lately that could be causing your problem.  I usually run tests using a virtual environment  (without the "-N"  or no virtual environnment flag).  You might try that, and have the test environment re-initialized with the latest required packages (as specified in test-requirements.txt & requirements.txt).  </font><br>
<br>
<font size="2" face="sans-serif">Or, you can double check that you do have current set of test requirements installed using the command:</font><br>
<font size="2" face="sans-serif">$ pip install -r test-requirements.txt</font><br>
<br>
<font size="2" face="sans-serif">Hope that helps -</font><br>
<br>
<font size="2" face="sans-serif">Regards,<br>
Bill Owen   <br>
billowen@us.ibm.com<br>
Strategic Test Methods and Tools                    <br>
520-799-4829, T/L 321-4829<br>
</font><br>
<br>
<img width="16" height="16" src="cid:1__=08BBF120DFD46E808f9e8a93df938@us.ibm.com" border="0" alt="Inactive hide details for "Zhangzan (zana)" ---07/25/2013 02:48:52 AM---Hi Can anyone tell me how to set up cinder unit test en"><font size="2" color="#424282" face="sans-serif">"Zhangzan (zana)" ---07/25/2013 02:48:52 AM---Hi Can anyone tell me how to set up cinder unit test environment?</font><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From:      </font><font size="1" face="sans-serif">"Zhangzan (zana)" <zana.zhangzan@huawei.com></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">"openstack@lists.launchpad.net" <openstack@lists.launchpad.net></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Cc:        </font><font size="1" face="sans-serif">Zhoushigang <zhoushigang@huawei.com></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date:      </font><font size="1" face="sans-serif">07/25/2013 02:48 AM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject:   </font><font size="1" face="sans-serif">[Openstack] How to set up the unit test environment of cinder?</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Sent by:   </font><font size="1" face="sans-serif">"Openstack" <openstack-bounces+billowen=us.ibm.com@lists.launchpad.net></font><br>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<font size="2" face="Calibri">Hi</font><br>
<font size="2" face="Calibri"> </font><br>
<font size="2" face="Calibri">Can anyone tell me how to set up cinder unit test environment?</font><br>
<font size="2" face="Calibri"> </font><br>
<font size="2" face="Calibri">Usually, I download the cinder code and run script run_test.sh.</font><br>
<font size="2" face="Calibri">But, now it can not work. This is the error msg:</font><br>
<font size="2" face="Calibri"> </font><br>
<font size="2" face="Calibri">root@ubuntu:/home/cinder-master# ./run_tests.sh -N -P</font><br>
<font size="2" face="Calibri">Running ` python setup.py testr --testr-args='--subunit --concurrency 1  '`</font><br>
<font size="2" face="Calibri">bash: tools/colorizer.py: Permission denied</font><br>
<font size="2" face="Calibri">Traceback (most recent call last):</font><br>
<font size="2" face="Calibri">  File "/usr/local/bin/subunit-2to1", line 5, in <module></font><br>
<font size="2" face="Calibri">    pkg_resources.run_script('python-subunit==0.0.13', 'subunit-2to1')</font><br>
<font size="2" face="Calibri">  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 505, in run_script</font><br>
<font size="2" face="Calibri">    self.require(requires)[0].run_script(script_name, ns)</font><br>
<font size="2" face="Calibri">  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1245, in run_script</font><br>
<font size="2" face="Calibri">    execfile(script_filename, namespace, namespace)</font><br>
<font size="2" face="Calibri">  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></font><br>
<font size="2" face="Calibri">    main()</font><br>
<font size="2" face="Calibri">  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</font><br>
<font size="2" face="Calibri">    case.run(result)</font><br>
<font size="2" face="Calibri">  File "/usr/local/lib/python2.7/dist-packages/python_subunit-0.0.13-py2.7.egg/subunit/v2.py", line 255, in run</font><br>
<font size="2" face="Calibri">    self._parse_packet(result)</font><br>
<font size="2" face="Calibri">  File "/usr/local/lib/python2.7/dist-packages/python_subunit-0.0.13-py2.7.egg/subunit/v2.py", line 324, in _parse_packet</font><br>
<font size="2" face="Calibri">    self._parse(packet, result)</font><br>
<font size="2" face="Calibri">  File "/usr/local/lib/python2.7/dist-packages/python_subunit-0.0.13-py2.7.egg/subunit/v2.py", line 440, in _parse</font><br>
<font size="2" face="Calibri">    route_code=route_code, timestamp=timestamp)</font><br>
<font size="2" face="Calibri">  File "/usr/local/lib/python2.7/dist-packages/testtools-0.9.32-py2.7.egg/testtools/testresult/real.py", line 1441, in status</font><br>
<font size="2" face="Calibri">    test_id=test_id, test_status=test_status, *args, **kwargs)</font><br>
<font size="2" face="Calibri">  File "/usr/local/lib/python2.7/dist-packages/testtools-0.9.32-py2.7.egg/testtools/testresult/real.py", line 651, in status</font><br>
<font size="2" face="Calibri">    self.on_test(self._inprogress.pop(key))</font><br>
<font size="2" face="Calibri">  File "/usr/local/lib/python2.7/dist-packages/testtools-0.9.32-py2.7.egg/testtools/testresult/real.py", line 1453, in _handle_tests</font><br>
<font size="2" face="Calibri">    case.run(self.decorated)</font><br>
<font size="2" face="Calibri">  File "/usr/local/lib/python2.7/dist-packages/testtools-0.9.32-py2.7.egg/testtools/testcase.py", line 678, in run</font><br>
<font size="2" face="Calibri">    result.startTest(self)</font><br>
<font size="2" face="Calibri">  File "/usr/local/lib/python2.7/dist-packages/testtools-0.9.32-py2.7.egg/testtools/testresult/real.py", line 1247, in startTest</font><br>
<font size="2" face="Calibri">    return self.decorated.startTest(test)</font><br>
<font size="2" face="Calibri">  File "/usr/local/lib/python2.7/dist-packages/testtools-0.9.32-py2.7.egg/testtools/testresult/real.py", line 1247, in startTest</font><br>
<font size="2" face="Calibri">    return self.decorated.startTest(test)</font><br>
<font size="2" face="Calibri">  File "/usr/local/lib/python2.7/dist-packages/python_subunit-0.0.13-py2.7.egg/subunit/__init__.py", line 764, in startTest</font><br>
<font size="2" face="Calibri">    self._stream.flush()</font><br>
<font size="2" face="Calibri">IOError: [Errno 32] Broken pipe</font><br>
<font size="2" face="Calibri">[Errno 32] Broken pipe</font><br>
<font size="2" face="Calibri">error: testr failed (3)</font><tt><font size="2">_______________________________________________<br>
Mailing list: </font></tt><tt><font size="2"><a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a></font></tt><tt><font size="2"><br>
Post to     : openstack@lists.launchpad.net<br>
Unsubscribe : </font></tt><tt><font size="2"><a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a></font></tt><tt><font size="2"><br>
More help   : </font></tt><tt><font size="2"><a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a></font></tt><tt><font size="2"><br>
</font></tt><br>
</body></html>