]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mimic: ceph-volume broken assertion errors after pytest changes 29417/head
authorJan Fajerski <jfajerski@suse.com>
Tue, 6 Aug 2019 13:34:12 +0000 (15:34 +0200)
committerJan Fajerski <jfajerski@suse.com>
Tue, 6 Aug 2019 13:34:12 +0000 (15:34 +0200)
This fixes a backported test that was not fixed on a backport. Original
fix: https://github.com/ceph/ceph/pull/28948. Backport:
https://github.com/ceph/ceph/pull/29243.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
src/ceph-volume/ceph_volume/tests/devices/lvm/strategies/test_bluestore.py

index c6dd3331299313e07d18c0ca3c978e2a7e9b03ad..4b388e39bda46a7b24fb81d175dbeed59cae827a 100644 (file)
@@ -199,4 +199,4 @@ class TestMixedTypeWithExplicitDevices(object):
         with pytest.raises(RuntimeError) as error:
             bluestore.MixedType(args, [hdd], [], [ssd]).computed['osds'][0]
         expected = 'Unable to use device 1.50 GB /dev/sda, LVs would be smaller than 1GB'
-        assert expected in str(error), str(error)
+        assert expected in str(error.value), str(error.value)