aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-07-09 10:49:23 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-07-09 10:49:23 -0400
commitc59ed6dad57d443a0fef14f9b120f5e6b026abc9 (patch)
tree1817f8761f41918f8d249718d5b8157d45f520c7 /tests
parentgrs/RunScript.py: check if the script exists before trying to unlink it. (diff)
downloadgrss-c59ed6dad57d443a0fef14f9b120f5e6b026abc9.tar.gz
grss-c59ed6dad57d443a0fef14f9b120f5e6b026abc9.tar.bz2
grss-c59ed6dad57d443a0fef14f9b120f5e6b026abc9.zip
grs/Rotator.py: consolidate common rotation code.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test-log.py4
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')