Browse Source

testing: improved logging

grondown_fdsn
Sebastian Heimann 1 year ago
parent
commit
69612f3497
2 changed files with 4 additions and 1 deletions
  1. +1
    -0
      test/__init__.py
  2. +3
    -1
      test/common.py

+ 1
- 0
test/__init__.py View File

@ -2,3 +2,4 @@ import matplotlib
matplotlib.use('Agg')
from pyrocko import util
util.force_dummy_progressbar = True
util.setup_logging('grondtest', 'info')

+ 3
- 1
test/common.py View File

@ -93,8 +93,10 @@ class Capture(object):
return self.file.getvalue()
def grond(*args, tee=False):
def grond(*args, **kwargs):
# tee = True
tee = kwargs.get('tee', False)
logger.info('Calling: grond %s' % ' '.join(args))
cap = Capture(tee=tee)
with cap:
main(['grond'] + list(args))


Loading…
Cancel
Save