Browse Source

better logging when running tests

Peter Magnusson 8 years ago
parent
commit
a4e3e6fad6
2 changed files with 4 additions and 2 deletions
  1. 2 1
      nodemcu_uploader/uploader.py
  2. 2 1
      tests/__init__.py

+ 2 - 1
nodemcu_uploader/uploader.py

@@ -290,8 +290,9 @@ class Uploader(object):
         fil = open(path, 'rb')
         content = fil.read()
         fil.close()
+        log.info('Verifying using %s...' % verify)
         if verify == 'raw':
-            log.info('Verifying...')
+
             data = self.download_file(destination)
             if content != data:
                 log.error('Raw verification failed.')

+ 2 - 1
tests/__init__.py

@@ -11,7 +11,8 @@ def get_tests():
 
 def full_suite():
     """creates a full suite of tests"""
-    logging.basicConfig(filename='test-debug.log', level=logging.INFO, format='%(message)s')
+    logging.basicConfig(filename='test.log', level=logging.INFO,
+        ormat='%(asctime)s %(levelname)s %(module)s.%(funcName)s %(message)s')
 
     from .misc import MiscTestCase
     from . import uploader