Skip to content

Actually check if stata batch mode invocations fail #5

@ideabucket

Description

@ideabucket

Stata is a bad unix citizen; if you invoke it in batch mode with stata -b and the command(s) you pass in fail (e.g. stata -b 'update all' doesn't actually update successfully), it will still exit with return code 0, so the build will continue when it should fail. At the moment we just assume it worked (but this is the main reason we fetch the update tarball ourselves rather than trusting stata to do it).

However, stata does output what it's doing to ./stata.log. Therefore it should be possible to do something like tail -n 1 stata.log to see if the expected output is present, and exit 1 if it isn't.

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