]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: Improve output for error diagnostics
authorDavid Zafman <dzafman@redhat.com>
Tue, 26 Jul 2016 21:18:36 +0000 (14:18 -0700)
committerDavid Zafman <dzafman@redhat.com>
Wed, 27 Jul 2016 16:58:59 +0000 (09:58 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/test/ceph_objectstore_tool.py

index d3f7d488080a566205d5bc2fe5b866d4a567b9a5..857fe0ec38d9c47d18400eb1388a71a8a4f370ca 100755 (executable)
@@ -171,7 +171,9 @@ def test_failure(cmd, errmsg, tty=False):
         logging.info("Correctly failed with message \"" + matched[0] + "\"")
         return 0
     else:
+        logging.error("Command: " + cmd )
         logging.error("Bad messages to stderr \"" + str(lines) + "\"")
+        logging.error("Expected \"" + errmsg + "\"")
         return 1