Skip to content

labgrid.protocol.CommandProtocol run_check #1379

Answered by Emantor
AndreasWilligLES asked this question in Q&A
Discussion options

You must be logged in to vote

You'll want to use run() instead of run_check(). run() returns the return code and your script can decide how to proceed.
With your pseudo code:

_, _, retcode = cli.run(___provision.sth)

if retcode = 0x1003:
    time.sleep(30)
    cli.run_check(__verifyprovision)
test_device()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AndreasWilligLES
Comment options

Answer selected by AndreasWilligLES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants