From: Mark McClain Date: Wed, 21 Nov 2012 18:16:37 +0000 (-0500) Subject: pass static to argv to quantum-debug config parser X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=080394ae5347d0e60475511d17550e3115890185;p=openstack-build%2Fneutron-build.git pass static to argv to quantum-debug config parser fixes bug 1079609 The quantum-debug tests were using the test runners sys.argv instead of creating a known value. This fix passes a fake argv to parse. Change-Id: Iaae7292057b839f64e172504a55034a0d9272918 --- diff --git a/quantum/tests/unit/test_debug_commands.py b/quantum/tests/unit/test_debug_commands.py index 8f47d9195..1a8fe9295 100644 --- a/quantum/tests/unit/test_debug_commands.py +++ b/quantum/tests/unit/test_debug_commands.py @@ -40,7 +40,7 @@ class TestDebugCommands(unittest.TestCase): def setUp(self): cfg.CONF.register_opts(interface.OPTS) cfg.CONF.register_opts(QuantumDebugAgent.OPTS) - cfg.CONF(args=sys.argv, project='quantum') + cfg.CONF(args=['quantum-debug'], project='quantum') cfg.CONF.set_override('use_namespaces', True) cfg.CONF.root_helper = 'sudo'