add python-subunit package to test-requirements.txt

Bug #1224155 reported by DennyZhang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Low
DennyZhang

Bug Description

I'm not sure whether this is a known issue.

When I run ./run_tests.sh, it keeps complaining "ImportError: No module named subunit".

I would suggest add "python-subunit" to test-requirements.txt

,----------- console output for ./run_tests.sh
| Command "tools/with_venv.sh pip install --upgrade -r /home/mac/tempest/requirements.txt" failed.
| None
| Traceback (most recent call last):
| File "tools/colorizer.py", line 46, in <module>
| import subunit
| ImportError: No module named subunit
| /home/mac/tempest/.venv/bin/python: No module named subunit
| Traceback (most recent call last):
| File "/usr/local/bin/subunit-2to1", line 46, in <module>
| main()
| File "/usr/local/bin/subunit-2to1", line 40, in main
| case.run(result)
| File "/usr/local/lib/python2.7/dist-packages/subunit/v2.py", line 257, in run
| self._parse_packet(result)
| File "/usr/local/lib/python2.7/dist-packages/subunit/v2.py", line 326, in _parse_packet
| self._parse(packet, result)
| File "/usr/local/lib/python2.7/dist-packages/subunit/v2.py", line 451, in _parse
| route_code=route_code, timestamp=timestamp)
| File "/usr/local/lib/python2.7/dist-packages/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/testresult/real.py", line 651, in status
| self.on_test(self._inprogress.pop(key))
| File "/usr/local/lib/python2.7/dist-packages/testtools/testresult/real.py", line 1453, in _handle_tests
| case.run(self.decorated)
| File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 678, in run
| result.startTest(self)
| File "/usr/local/lib/python2.7/dist-packages/testtools/testresult/real.py", line 1247, in startTest
| return self.decorated.startTest(test)
| File "/usr/local/lib/python2.7/dist-packages/testtools/testresult/real.py", line 1247, in startTest
| return self.decorated.startTest(test)
| File "/usr/local/lib/python2.7/dist-packages/subunit/__init__.py", line 764, in startTest
| self._stream.flush()
| IOError: [Errno 32] Broken pipe
`-----------

DennyZhang (denny-6)
Changed in tempest:
assignee: nobody → DennyZhang (denny-6)
DennyZhang (denny-6)
Changed in tempest:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.openstack.org/46324

DennyZhang (denny-6)
summary: - add python-subunit package to requirements.txt
+ add python-subunit package to test-requirements.txt
description: updated
Changed in tempest:
importance: Undecided → Medium
importance: Medium → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/46616

Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/46619

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/46619
Committed: http://github.com/openstack/tempest/commit/57a3ce0ac6e7e84a1153e177c7156e198f5aff81
Submitter: Jenkins
Branch: master

commit 57a3ce0ac6e7e84a1153e177c7156e198f5aff81
Author: DennyZhang <email address hidden>
Date: Sat Sep 14 07:33:52 2013 -0500

    Add missing import of 'subunit' in test-requirements.txt

     tools/colorized.py import subunit
     however test-requirements.txt doesn't note this.

     Closes-Bug: #1224155

    Change-Id: I4e1a8ee449c4fcf733116809de41e86d10f17e85

Changed in tempest:
status: In Progress → Fix Committed
Sean Dague (sdague)
Changed in tempest:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.