]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa: remove unreacheable/redundant code from test_data_scan.py 61991/head
authorDhairya Parmar <dparmar@redhat.com>
Tue, 25 Feb 2025 10:58:06 +0000 (16:28 +0530)
committerDhairya Parmar <dparmar@redhat.com>
Tue, 25 Feb 2025 10:59:12 +0000 (16:29 +0530)
call to self.fs.journal_tool(["journal", "reset", "--force", "--yes-i-really-really-mean-it"], 0)
is already made below it, the same call under if False is unreachable.

Signed-off-by: Dhairya Parmar <dparmar@redhat.com>
qa/tasks/cephfs/test_data_scan.py

index 73d40d4aa7da400e0ccd02313029478214335de7..bee8c292edbd65ccb2feec727c949c45b60fd22e 100644 (file)
@@ -499,11 +499,6 @@ class TestDataScan(CephFSTestCase):
         self.fs.table_tool([self.fs.name + ":0", "reset", "inode"])
 
         # Run the recovery procedure
-        if False:
-            with self.assertRaises(CommandFailedError):
-                # Normal reset should fail when no objects are present, we'll use --force instead
-                self.fs.journal_tool(["journal", "reset", "--yes-i-really-really-mean-it"], 0)
-
         self.fs.journal_tool(["journal", "reset", "--force", "--yes-i-really-really-mean-it"], 0)
         self.fs.data_scan(["init", "--force-init"])
         self.fs.data_scan(["scan_extents"], worker_count=workers)