|
testable = obj.get_testable_objects(args.as4user) |
|
|
|
if not testable: |
|
sap.cli.core.printerr('No testable objects found') |
|
return 1 |
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).
sapcli/sap/cli/aunit.py
Lines 248 to 252 in 2bcd23d
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).