-
Hi, Is there a way to get data full data from the serial after dut.write and before the dut.expect?
Here is the test, now besides expecting the Operation successful I need the
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Perhaps you could do match = dut.expect(r'adcval=([0-9.]+)V\nOperation successful')
value = match.group(1) (I didn't check whether this regex works for your output, but hopefully this illustrates the idea.) |
Beta Was this translation helpful? Give feedback.
-
Okay, I didn't look at it this way. I see the point, thanks for the quick reply! |
Beta Was this translation helpful? Give feedback.
Perhaps you could do
(I didn't check whether this regex works for your output, but hopefully this illustrates the idea.)