scripts/functions: properly catch failure in CT_Test* helpers
author"Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Oct 17 22:01:25 2012 +0200 (2012-10-17)
changeset 308495df9d32afd2
parent 3083 3a7b2eee9dcd
child 3085 0c3f8dd9d184
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>
scripts/functions
     1.1 --- a/scripts/functions	Sat Oct 06 23:48:07 2012 +0200
     1.2 +++ b/scripts/functions	Wed Oct 17 22:01:25 2012 +0200
     1.3 @@ -320,7 +320,7 @@
     1.4  # Usage: CT_Abort <message>
     1.5  CT_Abort() {
     1.6      CT_DoLog ERROR "$1"
     1.7 -    exit 1
     1.8 +    false
     1.9  }
    1.10  
    1.11  # Test a condition, and print a message if satisfied