Hi Guys,
I'm new to lettuce, and am currently working to integrate lettuce, web2y and jenkins. Once I've got it all working, I'll be blogging the working solution.
All is going well, apart from all my jenkins jobs work right until the end where it says the job failed. It appears to be failing because the exit status of the lettuce call is always 1. This is if all my steps pass or not.
I have had a look through the code on GitHub, and think I have found the offending part
result = runner.run()
failed = bool(result or result.steps != result.steps_passed)
raise SystemExit(int(failed))
Now it appears that the result will be a TotalResult and is created in the finally section of the Runner.Run method
This TotalResult is passed to the @after.all fucntion in terrain.py, so I have tested this, and basically the bool(result or result.steps != result.steps_passed) always returns a true, which is then converted to 1 on the raise SystemExit line.
Is this correct behaviour? I've seen some other issues in the group, where it was returning 1 in other scenarios.
Hope this makes sense, and that I've just made a mistake somewhere, I'm pretty new to Python, so it's quite likely
Thanks
Dave