mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-04 16:44:11 +01:00
--clean removes files before running tests, not after
This commit is contained in:
parent
8029e2b390
commit
6b778598bb
@ -230,8 +230,8 @@ def main():
|
|||||||
runner = unittest.TextTestRunner(verbosity=2)
|
runner = unittest.TextTestRunner(verbosity=2)
|
||||||
print('Testing began at %s (pid %s)' % (time.ctime(), os.getpid()))
|
print('Testing began at %s (pid %s)' % (time.ctime(), os.getpid()))
|
||||||
if options.clean:
|
if options.clean:
|
||||||
log.setLevel(100) # don't log anything anymore
|
|
||||||
shutil.rmtree(conf.supybot.directories.log())
|
shutil.rmtree(conf.supybot.directories.log())
|
||||||
|
log._mkDirs()
|
||||||
shutil.rmtree(conf.supybot.directories.conf())
|
shutil.rmtree(conf.supybot.directories.conf())
|
||||||
shutil.rmtree(conf.supybot.directories.data())
|
shutil.rmtree(conf.supybot.directories.data())
|
||||||
result = runner.run(suite)
|
result = runner.run(suite)
|
||||||
|
Loading…
Reference in New Issue
Block a user