]> 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>
Fri, 10 Jul 2015 17:10:43 +0000 (10:10 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/test/ceph_objectstore_tool.py

index 44c03c25849b0fb79b8f46c4e8d1b2da95fddf1d..e75ba7fb9b791bd08b6ab8353e39cac13e340472 100755 (executable)
@@ -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