ctdb-tests: Don't run valgrind or other tracing in simple_test_command()
authorMartin Schwenke <martin@meltin.net>
Mon, 20 Aug 2018 04:55:17 +0000 (14:55 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 3 Sep 2018 12:04:00 +0000 (14:04 +0200)
This function is used to run a extra command to check a result.  This
command is usually a script (often a stub) or an external command, so
no need to trace it with valgrind or whatever else might be specified.
In the worst case the command being run is a shell function, which
valgrind won't be able to find.

There is little use running the event script tests under valgrind.
However, when the whole test suite is being run under valgrind then it
should work.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Mon Sep  3 14:04:00 CEST 2018 on sn-devel-144

ctdb/tests/eventscripts/scripts/local.sh

index 03df06860e91530713320a98d17b49142bbe5ef4..ad683cf9934e600873a69653c6d107aaaf6906bd 100644 (file)
@@ -547,5 +547,5 @@ simple_test_event ()
 
 simple_test_command ()
 {
-    unit_test "$@"
+    unit_test_notrace "$@"
 }