summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-rally/verification-subunit2json-fail-to-open-result-file.patch
Commit message (Collapse)AuthorAgeFilesLines
* rally: verification subunit2json fail to open result fileVu Tran2014-07-171-0/+36
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 <vu.tran@windriver.com>