summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/dtf/lib/tests8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/dtf/lib/tests b/share/dtf/lib/tests
index e927307..d2d57b1 100644
--- a/share/dtf/lib/tests
+++ b/share/dtf/lib/tests
@@ -14,6 +14,14 @@ dtf_skip ()
dtf_fail ()
{
test -n "$1" && echo >&2 "$1"
+ test -z "$dtf_fail_hooks" && exit 1
+
+ echo >& "running dtf_fail hooks $dtf_fail_hooks"
+ for _i_hook in $dtf_fail_hooks
+ do
+ $_i_hook
+ done
+
exit 1
}