From: Mykola Golub Date: Tue, 8 Nov 2016 08:15:46 +0000 (+0200) Subject: test/librbd: in test_notify set object-map and fast-diff features by default X-Git-Tag: v11.1.0~294^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=24a96ec2b82b058e2a3b03f547c3c8c3ef15c488;p=ceph.git test/librbd: in test_notify set object-map and fast-diff features by default The test uses these features and fails if they are not set. Also, check the features are provided by the user. Signed-off-by: Mykola Golub --- diff --git a/src/test/librbd/test_notify.py b/src/test/librbd/test_notify.py index 43034c741d8..ecd8bd48e5a 100755 --- a/src/test/librbd/test_notify.py +++ b/src/test/librbd/test_notify.py @@ -43,9 +43,12 @@ def get_features(): if features is not None: features = int(features) else: - features = int(RBD_FEATURE_EXCLUSIVE_LOCK | RBD_FEATURE_LAYERING) + features = int(RBD_FEATURE_EXCLUSIVE_LOCK | RBD_FEATURE_LAYERING | + RBD_FEATURE_OBJECT_MAP | RBD_FEATURE_FAST_DIFF) assert((features & RBD_FEATURE_EXCLUSIVE_LOCK) != 0) assert((features & RBD_FEATURE_LAYERING) != 0) + assert((features & RBD_FEATURE_OBJECT_MAP) != 0) + assert((features & RBD_FEATURE_FAST_DIFF) != 0) return features def master(ioctx):