]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
qa/test_exports: fix TestExports failure under new python3 compability changes
authorSidharth Anupkrishnan <sanupkri@redhat.com>
Wed, 29 Apr 2020 13:04:57 +0000 (18:34 +0530)
committerKefu Chai <kchai@redhat.com>
Sun, 14 Jun 2020 08:34:51 +0000 (16:34 +0800)
commitbb8f7b0907a2557f4ef5b0455c0fce66aa896e4b
tree3aef9c164541796d24732d6f8c834a88eb2e6d69
parent69f9ce2d849e23b0cd837e38075bb2238a257450
qa/test_exports: fix TestExports failure under new python3 compability changes

self.mount_a.client_remote.sh() returns an 'str' object rather than a StringIO object. Hence the p.stdout.getvalue() produces an error. This commit fixes this and also fix str and byte mismatch as byte and string were the same object in Python2 but this is not the case in Python3.

Signed-off-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
(cherry picked from commit b98f3e388b6a38e91c2ee064466ae8f130a5bcda)
qa/tasks/cephfs/test_exports.py