Skip to content

Commit

Permalink
pass static to argv to quantum-debug config parser
Browse files Browse the repository at this point in the history
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
  • Loading branch information
markmcclain committed Nov 21, 2012
1 parent be77fd3 commit 080394a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quantum/tests/unit/test_debug_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 080394a

Please sign in to comment.