From a3b14ede9e829ec85c49980ecbff11f584ca70ae Mon Sep 17 00:00:00 2001 From: David Zafman Date: Tue, 23 Jun 2015 16:51:27 -0700 Subject: [PATCH] test: Add debug argument to the ceph-objectstore-tool test Signed-off-by: David Zafman --- src/test/ceph_objectstore_tool.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/test/ceph_objectstore_tool.py b/src/test/ceph_objectstore_tool.py index 44c03c25849b0..e75ba7fb9b791 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 -- 2.39.5