<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/meta-cloud-services.git/meta-openstack/recipes-devtools/python/python-rally/verification-subunit2json-fail-to-open-result-file.patch, branch wrynose</title>
<subtitle>Mirror of git.yoctoproject.org/meta-cloud-services.git</subtitle>
<id>https://git.enea.com/cgit/linux/meta-cloud-services.git/atom?h=wrynose</id>
<link rel='self' href='https://git.enea.com/cgit/linux/meta-cloud-services.git/atom?h=wrynose'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-cloud-services.git/'/>
<updated>2014-07-17T04:12:13+00:00</updated>
<entry>
<title>rally: verification subunit2json fail to open result file</title>
<updated>2014-07-17T04:12:13+00:00</updated>
<author>
<name>Vu Tran</name>
<email>vu.tran@windriver.com</email>
</author>
<published>2014-07-10T14:23:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/meta-cloud-services.git/commit/?id=ac22bcdf86fa6d687ed9421c0de39cb131e0c62d'/>
<id>urn:sha1:ac22bcdf86fa6d687ed9421c0de39cb131e0c62d</id>
<content type='text'>
Command "rally verify start" gives the following error:

TRACE rally   File "/usr/lib64/python2.7/site-packages/rally/verification/verifiers/tempest/subunit2json.py", line 113, in stopTestRun
TRACE rally     with open(self.results_file, 'wb') as results_file:
TRACE rally TypeError: coercing to Unicode: need string or buffer, int found

For Python 2.x, open() requires a string but not file descriptor number.
However for Python 3.x, open() can either accept a string file name of a
file descriptor number.

So modify code to pass in open() string file name.  This should work
for both Python 2.x and 3.x

Signed-off-by: Vu Tran &lt;vu.tran@windriver.com&gt;

</content>
</entry>
</feed>
