From 080394ae5347d0e60475511d17550e3115890185 Mon Sep 17 00:00:00 2001 From: Mark McClain Date: Wed, 21 Nov 2012 13:16:37 -0500 Subject: [PATCH] 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 --- quantum/tests/unit/test_debug_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- 2.45.2