]> rtime.felk.cvut.cz Git - omk.git/commitdiff
Report failed commands in tests (under bash only)
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 30 Apr 2013 14:13:27 +0000 (16:13 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 30 Apr 2013 14:13:27 +0000 (16:13 +0200)
tests/wvtest.sh

index 7b286c4e917c5bc599e5bb33cda75cd2efdd88b6..ac1e2d2cc22c25351f1139476c917eb0d5007fe1 100644 (file)
@@ -14,6 +14,8 @@ _wvtextclean()
 
 
 if [ -n "$BASH_VERSION" ]; then
+        trap 'echo "! ${BASH_SOURCE[0]}:${LINENO} ${BASH_COMMAND} FAILED"' ERR
+
        _wvfind_caller()
        {
                LVL=$1