tests/test_debs.sh: verify that autoconfig.functions can be read, otherwise fail
authorMichael Prokop <mika@grml.org>
Mon, 2 Jul 2012 12:21:52 +0000 (14:21 +0200)
committerMichael Prokop <mika@grml.org>
Mon, 2 Jul 2012 12:21:52 +0000 (14:21 +0200)
If autoconfig.functions can't be parsed (e.g. because of syntax errors)
then the test suite returns with exit code 0.

tests/test_debs.sh

index 04b566b..022d241 100755 (executable)
@@ -15,7 +15,7 @@ dpkg() {
 }
 
 test_debs() {
-    . ../autoconfig.functions
+    . ../autoconfig.functions || exit 1
     CMDLINE='debs'
     INSTALLED=''