nova/nova/tests/unit/cmd
Wen Zhi Yu cf7cd655a2 Fix error handling in nova.cmd.baseproxy
If an error occurs in nova.cmd.baseproxy the method exit_with_error
will be executed that looks as follows:

def exit_with_error(msg, errno=-1):
	print(msg) and sys.exit(errno)

However, in python2.7 this method terminates the application without
printing anything(unable to flush on time) and in Python3.4 it does
strange things because print() returns None.

This commit modifies exit_with_error method to output error message
with stderr(which in unbuffered).

Change-Id: I519b68f8c2bc62988de87bdd2847d5f3be7e532d
Closes-Bug: #1506213
2015-10-22 09:19:57 +08:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_baseproxy.py Fix error handling in nova.cmd.baseproxy 2015-10-22 09:19:57 +08:00
test_idmapshift.py Fix for mock-1.1.0 2015-07-10 10:18:19 -04:00
test_manage.py Don't query compute_node through service object in nova-manage 2015-04-21 09:36:39 +02:00