Skip to content

Exit status can’t be used to distinguish between tests not passing and other errors #603

@Rinzwind

Description

@Rinzwind

The exit status of ‘smalltalkci’ is 1 when tests don’t pass:

$ smalltalkci --smalltalk Pharo64-stable .smalltalk.ston; echo Status: $?
[…]
  Executed 64 Tests with 1 Failures and 0 Errors in 0.17s.
[…]
Status: 1

But also when there is some other error, for example:

$ smalltalkci --smalltalk Pharo64-stable .smalltalk.ston; echo Status: $?
[…]
Downloading Pharo64-stable image...
[…]
curl: (6) Could not resolve host: get.pharo.org
curl failed to download get.pharo.org/64/stable […]
Status: 1

So the status can’t be used in scripts to distinguish between these cases. It would be useful to have a status that specifically means the tests didn’t pass.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions