ctdb-tests: New function unit_test_notrace()
[vlendec/samba-autobuild/.git] / ctdb / tests / scripts / unit.sh
index 4e6d5d7f7c32a25d83745420eaaf45fd345c588a..7a0296e5f3763227f6f198f646b69cdf8b5d3c72 100644 (file)
@@ -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 ()