sapcli icon indicating copy to clipboard operation
sapcli copied to clipboard

No testable objects found should not result in an error return code

Open fabianlupa opened this issue 4 years ago • 2 comments

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).

fabianlupa avatar May 12 '20 07:05 fabianlupa

Good tip. Perhaps we can make it configurable?

jfilak avatar Sep 08 '23 15:09 jfilak

Perhaps! Though over 3 years later I no longer have the immediate need for this feature ;)

fabianlupa avatar Sep 11 '23 10:09 fabianlupa