]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Add debug argument to the ceph-objectstore-tool test
authorDavid Zafman <dzafman@redhat.com>
Tue, 23 Jun 2015 23:51:27 +0000 (16:51 -0700)
committerDavid Zafman <dzafman@redhat.com>
Thu, 25 Feb 2016 20:50:24 +0000 (12:50 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit a3b14ede9e829ec85c49980ecbff11f584ca70ae)

src/test/ceph_objectstore_tool.py

index 3f51d427871f420ad542f40679ac0438716c0758..8ff1c3e36fe3e174ad6eb76d1a28d2dc9616819f 100755 (executable)
@@ -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