--clean removes files before running tests, not after

This commit is contained in:
Valentin Lorentz 2023-09-04 18:24:16 +02:00
parent 8029e2b390
commit 6b778598bb
1 changed files with 1 additions and 1 deletions

View File

@ -230,8 +230,8 @@ def main():
runner = unittest.TextTestRunner(verbosity=2)
print('Testing began at %s (pid %s)' % (time.ctime(), os.getpid()))
if options.clean:
log.setLevel(100) # don't log anything anymore
shutil.rmtree(conf.supybot.directories.log())
log._mkDirs()
shutil.rmtree(conf.supybot.directories.conf())
shutil.rmtree(conf.supybot.directories.data())
result = runner.run(suite)