Commit c431c940 authored by Jameson Rollins's avatar Jameson Rollins
Browse files

test: better logging for testioc.py

parent d0bfada5
......@@ -44,9 +44,12 @@ class DummyDriver(pcaspy.Driver):
if __name__ == '__main__':
server = pcaspy.SimpleServer()
print('prefix: ' + prefix)
print('db: ')
pprint(pvdb)
# print('prefix: ' + prefix)
# print('db: ')
# pprint(pvdb)
print("pcas channels:")
for chan in pvdb:
print(' {}{}'.format(prefix, chan))
server.createPV(prefix, pvdb)
driver = DummyDriver()
......@@ -55,5 +58,6 @@ if __name__ == '__main__':
driver.setParamStatus(k, pcaspy.Severity.NO_ALARM, pcaspy.Severity.NO_ALARM)
driver.updatePVs()
print("ready:")
while True:
server.process(0.1)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment