git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ctdb-tests: New function unit_test_notrace()
[vlendec/samba-autobuild/.git]
/
ctdb
/
tests
/
scripts
/
unit.sh
diff --git
a/ctdb/tests/scripts/unit.sh
b/ctdb/tests/scripts/unit.sh
index 4e6d5d7f7c32a25d83745420eaaf45fd345c588a..7a0296e5f3763227f6f198f646b69cdf8b5d3c72 100644
(file)
--- a/
ctdb/tests/scripts/unit.sh
+++ b/
ctdb/tests/scripts/unit.sh
@@
-209,6
+209,16
@@
script_test ()
result_check || exit $?
}
+# Simple test harness for running tests without tracing
+unit_test_notrace ()
+{
+ test_header "$@"
+
+ _out=$("$@" 2>&1)
+
+ result_check || exit $?
+}
+
test_cleanup_hooks=""
test_cleanup ()