]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks: escaping '*' when deleting files
authorJohn Spray <jspray@redhat.com>
Wed, 17 Sep 2014 10:38:09 +0000 (11:38 +0100)
committerJohn Spray <jspray@redhat.com>
Wed, 17 Sep 2014 12:37:08 +0000 (13:37 +0100)
Signed-off-by: John Spray <john.spray@redhat.com>
tasks/mds_client_recovery.py

index 12de23113a64be689de1cd09ac0386ef380049a3..71e6dd3c8fe0c31c7cdaaf4ce1c2a0d48af4f2eb 100644 (file)
@@ -7,12 +7,12 @@ import contextlib
 import logging
 import time
 import unittest
+from teuthology.orchestra import run
 
-from teuthology import misc
 from teuthology.orchestra.run import CommandFailedError
 from teuthology.task import interactive
 from cephfs.filesystem import Filesystem
-from tasks.ceph_fuse import get_client_configs, FuseMount
+from tasks.ceph_fuse import FuseMount
 
 
 log = logging.getLogger(__name__)
@@ -40,7 +40,7 @@ class TestClientRecovery(unittest.TestCase):
         self.mount_a.wait_until_mounted()
         self.mount_b.wait_until_mounted()
 
-        self.mount_a.run_shell(["rm", "-rf", "*"])
+        self.mount_a.run_shell(["sudo", "rm", "-rf", run.Raw("*")])
 
     def tearDown(self):
         self.fs.clear_firewall()