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:
parent
4279c65d12
commit
ef641597db
@ -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):
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user