scripts/functions: properly catch failure in CT_Test* helpers

So we get caught by the trap-handler and
have a chance to run the debug-shell.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Johannes Stezenbach <js@sig21.net>
This commit is contained in:
Yann E. MORIN" 2012-10-17 22:01:25 +02:00
parent dd98145bc1
commit 623a30ed45

View File

@ -320,7 +320,7 @@ CT_SanitiseVarDir() {
# Usage: CT_Abort <message>
CT_Abort() {
CT_DoLog ERROR "$1"
exit 1
false
}
# Test a condition, and print a message if satisfied