Skip to content

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

@fabianlupa

Description

@fabianlupa

sapcli/sap/cli/aunit.py

Lines 248 to 252 in 2bcd23d

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions