summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2016-10-04 16:06:03 +0200
committerAlexander Sulfrian <alexander.sulfrian@fu-berlin.de>2016-10-04 16:06:03 +0200
commitd5e3fe95e8565b2c9af730473e4b25aecf5395c5 (patch)
treee0c4bc2ef69cbdee79f9e8606554348be1f4ac70
parent078a913ad179c12860aaafd5d8a75fa187ef0670 (diff)
downloadbcfg2-d5e3fe95e8565b2c9af730473e4b25aecf5395c5.tar.gz
bcfg2-d5e3fe95e8565b2c9af730473e4b25aecf5395c5.tar.bz2
bcfg2-d5e3fe95e8565b2c9af730473e4b25aecf5395c5.zip
TestOptions: Do not try to parse the cmd args of the tests
-rw-r--r--testsuite/Testsrc/Testlib/TestOptions/TestConfigFiles.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/Testsrc/Testlib/TestOptions/TestConfigFiles.py b/testsuite/Testsrc/Testlib/TestOptions/TestConfigFiles.py
index 6e2cda2c3..4277c8efe 100644
--- a/testsuite/Testsrc/Testlib/TestOptions/TestConfigFiles.py
+++ b/testsuite/Testsrc/Testlib/TestOptions/TestConfigFiles.py
@@ -45,9 +45,10 @@ class TestConfigFiles(OptionTestCase):
inner1()
@mock.patch("os.path.exists", mock.Mock(return_value=False))
- def test_no_config_file(self):
+ @make_config()
+ def test_no_config_file(self, config):
"""fail to read config file."""
try:
- self.parser.parse()
+ self.parser.parse(['-C', config])
except SystemExit:
self.fail('Missing config file should not raise SystemExit')