]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-detect-init: fix py3 test 7025/head
authorKefu Chai <kchai@redhat.com>
Wed, 23 Dec 2015 06:36:39 +0000 (14:36 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 23 Dec 2015 08:35:12 +0000 (16:35 +0800)
commit80c770e1151464000a963113147e5e42ec0aa224
tree81f5210aaca3f1f055d8122395cf11fca0554e41
parentcacc38e9cc73670908c2ab950b70fdbee9d20d3a
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>
src/ceph-detect-init/ceph_detect_init/debian/__init__.py
src/ceph-detect-init/tests/test_all.py