Skip to content

Commit

Permalink
selftest logging
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Jul 20, 2018
1 parent 33818e1 commit 41b6f26
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion selftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

import unittest, sys, time

from cothread.catools import caget, caput as _caput
from cothread.catools import caget as _caget, caput as _caput

class MRFTest(unittest.TestCase):
def evr(self, tmpl):
Expand Down Expand Up @@ -119,8 +119,14 @@ def test_dbuf32(self):
def caput(*args, **kws):
K = {'wait':True}
K.update(kws)
log.info('caput %s %s', args, kws)
_caput(*args, **K)

def caget(*args, **kws):
ret = _caget(*args, **kws)
log.info('caget %s %s -> %s', args, kws, ret)
return ret

def getargs():
from argparse import ArgumentParser
P = ArgumentParser()
Expand Down

0 comments on commit 41b6f26

Please sign in to comment.