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: v0.94.7~28^2~5^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=de80bbf4d7c1b78017cf447a7f511ceefac39e50;p=ceph.git test: Add debug argument to the ceph-objectstore-tool test Signed-off-by: David Zafman (cherry picked from commit a3b14ede9e829ec85c49980ecbff11f584ca70ae) --- diff --git a/src/test/ceph_objectstore_tool.py b/src/test/ceph_objectstore_tool.py index 3f51d427871f..8ff1c3e36fe3 100755 --- a/src/test/ceph_objectstore_tool.py +++ b/src/test/ceph_objectstore_tool.py @@ -358,7 +358,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