From: David Zafman Date: Tue, 3 Feb 2015 01:41:12 +0000 (-0800) Subject: test: Use ceph-objectstore-tool --no-overwrite for import-rados X-Git-Tag: v9.0.2~168^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=32be3024847a107ca741241ee837a077092bfa32;p=ceph.git test: Use ceph-objectstore-tool --no-overwrite for import-rados Signed-off-by: David Zafman --- diff --git a/src/test/ceph_objectstore_tool.py b/src/test/ceph_objectstore_tool.py index ee5ae52ecd05..035ceb3703b8 100755 --- a/src/test/ceph_objectstore_tool.py +++ b/src/test/ceph_objectstore_tool.py @@ -1094,6 +1094,12 @@ def main(argv): if ret != 0: logging.error("Import-rados failed from {file} with {ret}".format(file=file, ret=ret)) ERRORS += 1 + cmd = "./ceph-objectstore-tool --no-overwrite import-rados {pool} {file}".format(pool=NEWPOOL, file=file) + logging.debug(cmd) + ret = call(cmd, shell=True, stdout=nullfd) + if ret != 0: + logging.error("Import-rados failed from {file} with {ret}".format(file=file, ret=ret)) + ERRORS += 1 ERRORS += verify(DATADIR, NEWPOOL, REP_NAME) else: