From: David Zafman Date: Tue, 2 Jun 2015 00:15:21 +0000 (-0700) Subject: test/ceph-objectstore-tool: Show command that should have failed X-Git-Tag: v9.0.2~27^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=23551deea66673c35d7183d18b63b5a8438ebf00;p=ceph.git test/ceph-objectstore-tool: Show command that should have failed Signed-off-by: David Zafman --- diff --git a/src/test/ceph_objectstore_tool.py b/src/test/ceph_objectstore_tool.py index d6daf98e41e2..d14a8d4bdc36 100755 --- a/src/test/ceph_objectstore_tool.py +++ b/src/test/ceph_objectstore_tool.py @@ -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: