diff options
author | Colin Walters <walters@verbum.org> | 2016-01-27 11:44:10 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2016-01-27 11:44:10 -0500 |
commit | 5ebe43859d284a003e240e0cfe66b5185681e993 (patch) | |
tree | 9a50ffcbfc1688f0abeab58cfe8502b30c576d0c /tests/test-gpg-signed-commit.sh | |
parent | 3d2322db7a609fb4653ce6bf6c4b96b0c315a5b7 (diff) | |
download | ostree-5ebe43859d284a003e240e0cfe66b5185681e993.tar.gz |
tests: Use "bash strict mode"
I noticed in the static deltas tests, there were some tests that
should have been under `-o pipefail` to ensure we properly propagate
errors.
There were a few places where we were referencing undefined variables.
Overall, this is clearly a good idea IMO.
Diffstat (limited to 'tests/test-gpg-signed-commit.sh')
-rw-r--r-- | tests/test-gpg-signed-commit.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-gpg-signed-commit.sh b/tests/test-gpg-signed-commit.sh index ba361c7a..b713da2d 100644 --- a/tests/test-gpg-signed-commit.sh +++ b/tests/test-gpg-signed-commit.sh @@ -18,9 +18,9 @@ # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. -set -e +set -euo pipefail -if ! ${CMD_PREFIX} ostree --version | grep -q -e '\+gpgme'; then +if ! ostree --version | grep -q -e '\+gpgme'; then exit 77 fi |