From 951aa033999da6c0d421a318d5c7c84a49016408 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Mon, 25 Feb 2013 14:48:56 -0500 Subject: if reset fails, display the command that failed we get failures in _reset_databases from time to time, and it's hard to debug without understanding what command failed. Make this show up in the assert message. Now with even more output! Change-Id: Ie82109cfb1745e7218e0906764db1fad0c8fc5f5 --- nova/tests/test_migrations.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nova/tests') diff --git a/nova/tests/test_migrations.py b/nova/tests/test_migrations.py index 7c75a64ea..5cc7da8f2 100644 --- a/nova/tests/test_migrations.py +++ b/nova/tests/test_migrations.py @@ -248,7 +248,8 @@ class BaseMigrationTestCase(test.TestCase): def execute_cmd(cmd=None): status, output = commands.getstatusoutput(cmd) LOG.debug(output) - self.assertEqual(0, status) + self.assertEqual(0, status, + "Failed to run: %s\n%s" % (cmd, output)) for key, engine in self.engines.items(): conn_string = self.test_databases[key] conn_pieces = urlparse.urlparse(conn_string) -- cgit