diff options
| author | Vu Tran <vu.tran@windriver.com> | 2014-07-10 10:23:50 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-07-17 00:12:13 -0400 |
| commit | ac22bcdf86fa6d687ed9421c0de39cb131e0c62d (patch) | |
| tree | aba49699f755d6ac9f55d8613de7cd3f368190ba /meta-openstack/recipes-devtools/python/python-rally_git.bb | |
| parent | f550a375c091a27aeb80d64140c943beba788127 (diff) | |
| download | meta-cloud-services-ac22bcdf86fa6d687ed9421c0de39cb131e0c62d.tar.gz | |
rally: verification subunit2json fail to open result file
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>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-rally_git.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-rally_git.bb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-rally_git.bb b/meta-openstack/recipes-devtools/python/python-rally_git.bb index 360e89f..30e3283 100644 --- a/meta-openstack/recipes-devtools/python/python-rally_git.bb +++ b/meta-openstack/recipes-devtools/python/python-rally_git.bb | |||
| @@ -17,6 +17,7 @@ SRC_URI = "git://github.com/stackforge/${SRCNAME}.git;branch=master \ | |||
| 17 | file://remove-ironic-support.patch \ | 17 | file://remove-ironic-support.patch \ |
| 18 | file://verification-to-use-existing-tempest.patch \ | 18 | file://verification-to-use-existing-tempest.patch \ |
| 19 | file://sqlalchemy-db-missing-name-for-ENUM.patch \ | 19 | file://sqlalchemy-db-missing-name-for-ENUM.patch \ |
| 20 | file://verification-subunit2json-fail-to-open-result-file.patch \ | ||
| 20 | " | 21 | " |
| 21 | 22 | ||
| 22 | SRCREV="b297cf00750f263b8b5bdeb71f6952f672e87f5a" | 23 | SRCREV="b297cf00750f263b8b5bdeb71f6952f672e87f5a" |
