diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-12-08 08:17:41 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-12-08 08:17:41 +0000 |
| commit | e6c576d9b08e96b0dcd6b630eefa84fa1bec9f16 (patch) | |
| tree | d263a86714555f89c1c2416f410f571cc6cfa8a3 /tests | |
| parent | 9062a31c0774b815213e02497b66e591f783795b (diff) | |
| parent | 479f19c1bc27e7ef7d4f1bf6037570403bd4d71b (diff) | |
| download | oslo-e6c576d9b08e96b0dcd6b630eefa84fa1bec9f16.tar.gz oslo-e6c576d9b08e96b0dcd6b630eefa84fa1bec9f16.tar.xz oslo-e6c576d9b08e96b0dcd6b630eefa84fa1bec9f16.zip | |
Merge "Add deprecated --logdir common opt"
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit/test_cfg.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/unit/test_cfg.py b/tests/unit/test_cfg.py index ef917ca..ff24c0c 100644 --- a/tests/unit/test_cfg.py +++ b/tests/unit/test_cfg.py @@ -1613,12 +1613,21 @@ class CommonOptsTestCase(BaseTestCase): self.conf(['--log-file', log_file]) self.assertEquals(self.conf.log_file, log_file) - def test_logfile(self): + def test_logfile_deprecated(self): logfile = '/some/other/path/foo-bar.log' - #NOTE(dprince): this is now a deprecated option for --log-file self.conf(['--logfile', logfile]) self.assertEquals(self.conf.log_file, logfile) + def test_log_dir(self): + log_dir = '/some/path/' + self.conf(['--log-dir', log_dir]) + self.assertEquals(self.conf.log_dir, log_dir) + + def test_logdir_deprecated(self): + logdir = '/some/other/path/' + self.conf(['--logdir', logdir]) + self.assertEquals(self.conf.log_dir, logdir) + class ConfigParserTestCase(unittest.TestCase): def test_no_section(self): |
