|
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 |
Answered by
igrr
Mar 27, 2024
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.) |
0 replies
Answer selected by
KaDw
|
Okay, I didn't look at it this way. I see the point, thanks for the quick reply! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perhaps you could do
(I didn't check whether this regex works for your output, but hopefully this illustrates the idea.)