]> git.draconx.ca Git - upkg.git/commitdiff
libupkg: Actually fail if the index-decode test fails...
authorNick Bowler <nbowler@draconx.ca>
Fri, 11 May 2012 22:45:59 +0000 (18:45 -0400)
committerNick Bowler <nbowler@draconx.ca>
Fri, 11 May 2012 23:13:05 +0000 (19:13 -0400)
Oops.

tests/libupkg-index-decode.sh

index b82bbc94e75f81d9674a7c562b444697c06f4d85..f5c913d587f43c5d454e22022e914e6096194ff9 100644 (file)
@@ -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