sapcli
sapcli copied to clipboard
No testable objects found should not result in an error return code
https://github.com/jfilak/sapcli/blob/2bcd23dfb0fec3b578d2a44daf57ba1d84c10d12/sap/cli/aunit.py#L248-L252
Hi,
I often have transports that do not have any objects with unit tests in them. I would like my build on the merge request to not fail if that is the case. Because sapcli returns 1 I cannot distinguish it from 1 error message caused by a unit test. I would have to parse stdout for No testable objects found
.
In my opinion a return code of 0 would make sense but I would also be happy with a fixed one that isn't used for normal error reporting (-1).
Good tip. Perhaps we can make it configurable?
Perhaps! Though over 3 years later I no longer have the immediate need for this feature ;)