]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix TestNecAgentMain not to call sys.exit()
authorRoman Bogorodskiy <rbogorodskiy@mirantis.com>
Tue, 18 Jun 2013 17:12:27 +0000 (13:12 -0400)
committerRoman Bogorodskiy <rbogorodskiy@mirantis.com>
Wed, 19 Jun 2013 06:00:27 +0000 (02:00 -0400)
commit381cb1c4e4b5122a8afae67ad4cbeebcb39cbf83
tree7318977de570ee10a4951dfbb31596dd2438f74a
parenta0f8d5a35454a54766af3494fcd16233434364e7
Fix TestNecAgentMain not to call sys.exit()

test_main() was calling sys.exit() killing test running
and not allowing tests to complete in a proper way.

Drop explicit sys.exit() call from net agent's main() and
fix outdated mocks in test_main().

Fixes bug #1192270

Change-Id: Iea8d5508f73eb9144e452de3305f2dec4c2a319c
quantum/plugins/nec/agent/nec_quantum_agent.py
quantum/tests/unit/nec/test_nec_agent.py