]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests: ceph_objectstore_tool.py replace stop.sh with init-ceph
authorLoic Dachary <ldachary@redhat.com>
Thu, 13 Nov 2014 16:32:14 +0000 (17:32 +0100)
committerLoic Dachary <ldachary@redhat.com>
Sat, 15 Nov 2014 22:27:15 +0000 (23:27 +0100)
The stop.sh will stop all ceph-* processes. Use the init-ceph script
instead to selectively kill the daemons run by the vstart.sh cluster
used for ceph_objectstore_tool.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
src/test/ceph_objectstore_tool.py

index 0eba710775e4ace7d1f56ed8cb0b5edb6d546070..95375143cd54f18a8a24d8964c89a986f8cb2de8 100755 (executable)
@@ -372,7 +372,7 @@ def main(argv):
 
     logging.debug(db)
 
-    call("./stop.sh", stderr=nullfd)
+    call("./init-ceph -c {conf} stop osd mon".format(conf=CEPH_CONF), shell=True)
 
     if ERRORS:
         logging.critical("Unable to set up test")
@@ -753,7 +753,7 @@ def main(argv):
     else:
         logging.warning("SKIPPING IMPORT-RADOS TESTS DUE TO PREVIOUS FAILURES")
 
-    call("./stop.sh", stderr=nullfd)
+    call("./init-ceph -c {conf} stop osd mon".format(conf=CEPH_CONF), shell=True)
 
     call("/bin/rm -rf {dir}".format(dir=TESTDIR), shell=True)
     call("/bin/rm -rf {dir}".format(dir=DATADIR), shell=True)