diff options
author | Explorer09 <explorer09@gmail.com> | 2017-01-02 00:43:50 +0800 |
---|---|---|
committer | Will Estes <westes575@gmail.com> | 2017-01-17 21:08:42 -0500 |
commit | 8c8691c3fdb327eb45d5ee831da62e7433563004 (patch) | |
tree | f50b20abb57198cf4c6e2b8d877c709cbedbaef2 /tests/tableopts.sh | |
parent | bb92951c022ea135d2f9dbc51dd9803ac7cd97ad (diff) |
test: exit on '-1' test non-zero status.
If a '-1' test program returns a non-zero status, don't go further and
compare it's (numeric) output values. This allows a '-1' test to
indicate a "skip" status or an otherwise error. (Currently no such '-1'
test would skip like this, though.)
Shell syntax note: `set -e` will not exit with the syntax like this
`test $(false) = $(false);`. The exit statuses of `false` in the
example will be ignored instead. But putting the output in a variable,
such as `VAR=$(false)`, DOES exit.
Diffstat (limited to 'tests/tableopts.sh')
0 files changed, 0 insertions, 0 deletions