Fixed typo, updated test
This commit is contained in:
@@ -54,6 +54,12 @@ run the following command::
|
||||
|
||||
$ ./run.py --stop-after-configfile-check <your domain>
|
||||
|
||||
If you updated your installer, your config file might be outdated.
|
||||
The program will exit after the update, so you can check the config file
|
||||
before continuing. To perform the update, run the following command::
|
||||
|
||||
$ ./run.py --update-configfile <your domain>
|
||||
|
||||
An interactive mode is also available::
|
||||
|
||||
$ ./run.py --interactive <your domain>
|
||||
|
||||
@@ -355,7 +355,7 @@ def update_config(path):
|
||||
dropped_sections = list(set(old_sections) - set(new_sections))
|
||||
|
||||
if len(dropped_sections) > 0:
|
||||
printcolor("Follow section(s) will not be ported "
|
||||
printcolor("Following section(s) will not be ported "
|
||||
"due to being deleted or renamed: " +
|
||||
', '.join(dropped_sections),
|
||||
RED)
|
||||
|
||||
6
tests.py
6
tests.py
@@ -31,11 +31,7 @@ class ConfigFileTestCase(unittest.TestCase):
|
||||
|
||||
def tearDown(self):
|
||||
"""Delete temp dir."""
|
||||
out = StringIO()
|
||||
sys.stdout = out
|
||||
print(self.workdir)
|
||||
#shutil.rmtree(self.workdir)
|
||||
pass
|
||||
shutil.rmtree(self.workdir)
|
||||
|
||||
def test_configfile_generation(self):
|
||||
"""Check simple case."""
|
||||
|
||||
Reference in New Issue
Block a user