]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-detect-init: fix py3 test 7243/head
authorKefu Chai <kchai@redhat.com>
Wed, 23 Dec 2015 06:36:39 +0000 (14:36 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 15 Jan 2016 05:15:54 +0000 (13:15 +0800)
commit73c36f329b93fcedb8973de34c8273d2d60aacd5
tree78521c11811d37c42181ceada1980bc77ec54f3e
parent2697b302bd5e28f172c6d87966a48c77665cde53
ceph-detect-init: fix py3 test

* in python3, None can not be compared with a str. and
  we should always set codename with a non empty str, so update
  TestCephDetectInit.test_debian so it always set a code name.
  and assert(codename and distroname) in choose_init().

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 80c770e1151464000a963113147e5e42ec0aa224)
src/ceph-detect-init/ceph_detect_init/debian/__init__.py
src/ceph-detect-init/tests/test_all.py