]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: use new hex rep of inode 16292/head
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 3 Aug 2017 04:39:48 +0000 (21:39 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 3 Aug 2017 04:39:48 +0000 (21:39 -0700)
Resolves a failure from QA:

    2017-08-02T19:23:27.489 INFO:tasks.cephfs_test_runner:======================================================================
    2017-08-02T19:23:27.489 INFO:tasks.cephfs_test_runner:FAIL: test_oversize (tasks.cephfs.test_fragment.TestFragmentation)
    2017-08-02T19:23:27.489 INFO:tasks.cephfs_test_runner:----------------------------------------------------------------------
    2017-08-02T19:23:27.490 INFO:tasks.cephfs_test_runner:Traceback (most recent call last):
    2017-08-02T19:23:27.490 INFO:tasks.cephfs_test_runner:  File "/home/teuthworker/src/git.ceph.com_ceph-c_wip-pdonnell-testing-20170802/qa/tasks/cephfs/test_fragment.py", line 71, in test_oversize
    2017-08-02T19:23:27.490 INFO:tasks.cephfs_test_runner:    self.assertEqual(frags[0]['dirfrag'], "10000000000.0*")
    2017-08-02T19:23:27.490 INFO:tasks.cephfs_test_runner:AssertionError: u'0x10000000000.0*' != '10000000000.0*'
    2017-08-02T19:23:27.490 INFO:tasks.cephfs_test_runner:

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
qa/tasks/cephfs/test_fragment.py

index f2486a06331f675c669ddc8f8854784c427fff22..a62ef743216471116c27b447f209d3f0370d8b59 100644 (file)
@@ -68,8 +68,8 @@ class TestFragmentation(CephFSTestCase):
 
         frags = self.get_dir_ino("/splitdir")['dirfrags']
         self.assertEqual(len(frags), 2)
-        self.assertEqual(frags[0]['dirfrag'], "10000000000.0*")
-        self.assertEqual(frags[1]['dirfrag'], "10000000000.1*")
+        self.assertEqual(frags[0]['dirfrag'], "0x10000000000.0*")
+        self.assertEqual(frags[1]['dirfrag'], "0x10000000000.1*")
         self.assertEqual(
             sum([len(f['dentries']) for f in frags]),
             split_size + 1