sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #56302
Re: [Question #694632]: Command line execution: script return code on script abort (FindFailed)
Question #694632 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/694632
Status: Open => Answered
RaiMan proposed the following answer:
To set the script return code with special script situations is not a
feature of SikuliX.
Generally the value of exit(value) is returned.
If no exit() is executed, 0 is returned.
It is totally up to the user, to define and use return codes, that can
be evaluated in the outer world.
What I do not understand:
Since you are testing something, why don't you use the powerful unittest feature of Python?
Nice reporting could be done using the bundled HTMLTestRunner.
If you stay with your basic concept, you should've a deeper look into
the docs about FindFailed handling and the options.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.