Remove useless log file
authorSimo Sorce <simo@redhat.com>
Sat, 11 Oct 2014 16:14:20 +0000 (12:14 -0400)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Fri, 24 Oct 2014 16:03:28 +0000 (18:03 +0200)
Tests do not log into this log file, so remove it for now, it just clutters
the tests dir without reason.

Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
tests/tests.py

index 4690442..f12182d 100755 (executable)
@@ -52,22 +52,6 @@ def parse_args():
     return vars(parser.parse_args())
 
 
     return vars(parser.parse_args())
 
 
-def openlogs(path, name):
-    global logger  # pylint: disable=W0603
-    logger = logging.getLogger()
-    try:
-        datestr = datetime.now().strftime("%Y-%m-%d_%H:%M:%S")
-        filename = '%s/test-%s-%s.log' % (path, name, datestr)
-        lh = logging.FileHandler(filename)
-    except IOError, e:
-        print >> sys.stderr, 'Unable to open %s (%s)' % (filename, str(e))
-        lh = logging.StreamHandler(sys.stderr)
-    formatter = logging.Formatter('[%(asctime)s] %(message)s')
-    lh.setFormatter(formatter)
-    logger.addHandler(lh)
-    logger.setLevel(logging.DEBUG)
-
-
 def try_wrappers(base, wrappers):
     if wrappers == 'no':
         return {}
 def try_wrappers(base, wrappers):
     if wrappers == 'no':
         return {}
@@ -103,8 +87,6 @@ if __name__ == '__main__':
     if not os.path.exists(args['path']):
         os.makedirs(args['path'])
 
     if not os.path.exists(args['path']):
         os.makedirs(args['path'])
 
-    openlogs(args['path'], args['test'])
-
     test.setup_base(args['path'], test)
 
     env = try_wrappers(test.testdir, args['wrappers'])
     test.setup_base(args['path'], test)
 
     env = try_wrappers(test.testdir, args['wrappers'])