Don't ignore unexpected exceptions. Have the mock report the playback errors inline with the other calls.
Signed-off-by: Jean-Marc Eurin <jmeurin@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@4458 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/cli/cli_mock.py b/cli/cli_mock.py
index 7d010f4..c24a375 100644
--- a/cli/cli_mock.py
+++ b/cli/cli_mock.py
@@ -29,7 +29,7 @@
class cli_unittest(unittest.TestCase):
def setUp(self):
super(cli_unittest, self).setUp()
- self.god = mock.mock_god(debug=CLI_UT_DEBUG)
+ self.god = mock.mock_god(debug=CLI_UT_DEBUG, ut=self)
self.god.stub_class_method(rpc.afe_comm, 'run')
self.god.stub_function(sys, 'exit')