diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2015-07-09 10:49:23 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-07-09 10:49:23 -0400 |
commit | c59ed6dad57d443a0fef14f9b120f5e6b026abc9 (patch) | |
tree | 1817f8761f41918f8d249718d5b8157d45f520c7 /tests | |
parent | grs/RunScript.py: check if the script exists before trying to unlink it. (diff) | |
download | grss-c59ed6dad57d443a0fef14f9b120f5e6b026abc9.tar.gz grss-c59ed6dad57d443a0fef14f9b120f5e6b026abc9.tar.bz2 grss-c59ed6dad57d443a0fef14f9b120f5e6b026abc9.zip |
grs/Rotator.py: consolidate common rotation code.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test-log.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test-log.py b/tests/test-log.py index 7f19b58..f132ca0 100755 --- a/tests/test-log.py +++ b/tests/test-log.py @@ -11,10 +11,8 @@ from grs import Log logdir = '/tmp/test-log' def doit(stamped = False): - try: + if os.path.isdir(logdir): shutil.rmtree(logdir) - except FileNotFoundError: - pass os.makedirs(logdir) logfile = os.path.join(logdir, 'test.log') |