]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
scrub_test: Fix swapped assert error messages
authorDavid Zafman <dzafman@redhat.com>
Sat, 30 Apr 2016 00:46:51 +0000 (17:46 -0700)
committerDavid Zafman <dzafman@redhat.com>
Tue, 3 May 2016 16:11:51 +0000 (09:11 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
tasks/scrub_test.py

index 23ab8b954b1c5bfe3a32c95755eaf8fa41918291..e8f706490d2ae7cdc24906b237cf21ba7673ca13 100644 (file)
@@ -248,9 +248,9 @@ class InconsistentObjChecker:
                     "multiple good attrs found"
                 good_attr = attr
         assert bad_attr is not None, \
-            "good {attr} not found".format(attr=attr_name)
-        assert good_attr is not None, \
             "bad {attr} not found".format(attr=attr_name)
+        assert good_attr is not None, \
+            "good {attr} not found".format(attr=attr_name)
         assert good_attr != bad_attr, \
             "bad attr is identical to the good ones: " \
             "{0} == {1}".format(good_attr, bad_attr)