-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
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
Labels
No labels