Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updateBuildTag: convert proc.stdout.read() to str.
In python2.7, proc.stdout.read() returns a str type. On python3.x, it returns bytes. Without this change, building with python3.x (python3.5 tested) as /usr/bin/python will result in the following error: Traceback (most recent call last): File "./updateBuildTag.py", line 76, in <module> updateBuildTag(sys.argv) File "./updateBuildTag.py", line 62, in updateBuildTag cmd_build_tag = cmd_build_tag+" "+commit_id TypeError: Can't convert 'bytes' object to str implicitly Change-Id: Ib53e0012dd32883559c5fb9d82beb6f2d8881921 Signed-off-by: Marty E. Plummer <hanetzer@startmail.com> Signed-off-by: vinaybs6 <vinaybs6@in.ibm.com> Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/89363 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Srikantha S. Meesala <srikantha@in.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: RAJA DAS <rajadas2@in.ibm.com>
- Loading branch information