Fixed typo, updated test

This commit is contained in:
Spitap
2023-03-03 09:33:32 +01:00
parent 335a676a1e
commit dbfede6df1
3 changed files with 8 additions and 6 deletions

View File

@@ -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>

View File

@@ -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)

View File

@@ -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."""