]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/ceph-objectstore-tool: Show command that should have failed
authorDavid Zafman <dzafman@redhat.com>
Tue, 2 Jun 2015 00:15:21 +0000 (17:15 -0700)
committerDavid Zafman <dzafman@redhat.com>
Thu, 25 Feb 2016 20:50:23 +0000 (12:50 -0800)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 23551deea66673c35d7183d18b63b5a8438ebf00)

src/test/ceph_objectstore_tool.py

index 10ce56f71e7f47f42c24ada4099ed1121a875716..368f9048129b5f502a68e53c5f18fcf732be0657 100755 (executable)
@@ -149,6 +149,7 @@ def test_failure_tty(cmd, errmsg):
     ttyfd.close()
     tmpfd.close()
     if ret == 0:
+        logging.error(cmd)
         logging.error("Should have failed, but got exit 0")
         return 1
     lines = get_lines(TMPFILE)
@@ -165,6 +166,7 @@ def test_failure(cmd, errmsg):
     logging.debug(cmd)
     try:
         check_output(cmd, stderr=subprocess.STDOUT, shell=True)
+        logging.error(cmd)
         logging.error("Should have failed, but got exit 0")
         return 1
     except subprocess.CalledProcessError, e: