Pass empty args to test config parser.

This fixes bug 1056420, which allows users to pass nosetests options
through run_tests.sh again.

Change-Id: I03e84488a24e2552b61aa0cab842d8325e8e856f
This commit is contained in:
Mark Washenberger 2012-09-25 19:57:10 +00:00
parent 4279c65d12
commit ef641597db
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ UUID1 = _gen_uuid()
UUID2 = _gen_uuid()
#NOTE(bcwaldon): needed to init config_dir cli opt
config.parse_args()
config.parse_args(args=[])
class TestRegistryClient(base.IsolatedUnitTest):

View File

@ -57,7 +57,7 @@ class BaseTestCase(unittest.TestCase):
#NOTE(bcwaldon): parse_args has to be called to register certain
# command-line options - specifically we need config_dir for
# the following policy tests
config.parse_args()
config.parse_args(args=[])
def tearDown(self):
super(BaseTestCase, self).tearDown()