]> git-server-git.apps.pok.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>
Tue, 2 Jun 2015 00:41:18 +0000 (17:41 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/test/ceph_objectstore_tool.py

index d6daf98e41e26a9e3917922fba6fe6a3cce4e39e..d14a8d4bdc36fbc00a7b12ee4fb73d6b84f97f56 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: