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>
|
$ ./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::
|
An interactive mode is also available::
|
||||||
|
|
||||||
$ ./run.py --interactive <your domain>
|
$ ./run.py --interactive <your domain>
|
||||||
|
|||||||
@@ -355,7 +355,7 @@ def update_config(path):
|
|||||||
dropped_sections = list(set(old_sections) - set(new_sections))
|
dropped_sections = list(set(old_sections) - set(new_sections))
|
||||||
|
|
||||||
if len(dropped_sections) > 0:
|
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: " +
|
"due to being deleted or renamed: " +
|
||||||
', '.join(dropped_sections),
|
', '.join(dropped_sections),
|
||||||
RED)
|
RED)
|
||||||
|
|||||||
6
tests.py
6
tests.py
@@ -31,11 +31,7 @@ class ConfigFileTestCase(unittest.TestCase):
|
|||||||
|
|
||||||
def tearDown(self):
|
def tearDown(self):
|
||||||
"""Delete temp dir."""
|
"""Delete temp dir."""
|
||||||
out = StringIO()
|
shutil.rmtree(self.workdir)
|
||||||
sys.stdout = out
|
|
||||||
print(self.workdir)
|
|
||||||
#shutil.rmtree(self.workdir)
|
|
||||||
pass
|
|
||||||
|
|
||||||
def test_configfile_generation(self):
|
def test_configfile_generation(self):
|
||||||
"""Check simple case."""
|
"""Check simple case."""
|
||||||
|
|||||||
Reference in New Issue
Block a user