From: David Zafman Date: Tue, 23 Jun 2015 23:51:27 +0000 (-0700) Subject: test: Add debug argument to the ceph-objectstore-tool test X-Git-Tag: v9.0.3~48^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a3b14ede9e829ec85c49980ecbff11f584ca70ae;p=ceph.git test: Add debug argument to the ceph-objectstore-tool test Signed-off-by: David Zafman --- diff --git a/src/test/ceph_objectstore_tool.py b/src/test/ceph_objectstore_tool.py index 44c03c25849b..e75ba7fb9b79 100755 --- a/src/test/ceph_objectstore_tool.py +++ b/src/test/ceph_objectstore_tool.py @@ -357,7 +357,10 @@ def check_data(DATADIR, TMPFILE, OSDDIR, SPLIT_NAME): def main(argv): sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0) - nullfd = open(os.devnull, "w") + if len(argv) > 1 and argv[1] == "debug": + nullfd = sys.stdout + else: + nullfd = open(os.devnull, "w") call("rm -fr {dir}; mkdir {dir}".format(dir=CEPH_DIR), shell=True) os.environ["CEPH_DIR"] = CEPH_DIR