From: Nick Bowler Date: Fri, 11 May 2012 22:45:59 +0000 (-0400) Subject: libupkg: Actually fail if the index-decode test fails... X-Git-Url: http://git.draconx.ca/gitweb/upkg.git/commitdiff_plain/0a10f5e2ea0750d4a5f7ea682eea7a651dbeacd6 libupkg: Actually fail if the index-decode test fails... Oops. --- diff --git a/tests/libupkg-index-decode.sh b/tests/libupkg-index-decode.sh index b82bbc9..f5c913d 100644 --- a/tests/libupkg-index-decode.sh +++ b/tests/libupkg-index-decode.sh @@ -38,17 +38,17 @@ test_index() { esac } -test_index 00 0 -test_index 4000 0 -test_index 408000 0 -test_index 40808000 0 -test_index 4080808000 0 +test_index 00 0 || exit 1 +test_index 4000 0 || exit 1 +test_index 408000 0 || exit 1 +test_index 40808000 0 || exit 1 +test_index 4080808000 0 || exit 1 # False positives -test_index '' -test_index 40 -test_index 4080 -test_index 408080 -test_index 40808080 -test_index 4080808080 -test_index 408080808000 +test_index '' || exit 1 +test_index 40 || exit 1 +test_index 4080 || exit 1 +test_index 408080 || exit 1 +test_index 40808080 || exit 1 +test_index 4080808080 || exit 1 +test_index 408080808000 || exit 1