summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/tool
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2012-04-19 11:27:05 +1000
committerMartin Schwenke <martin@meltin.net>2012-04-27 15:40:43 +1000
commit43f1209dc4484f456ccd47254955c0eb4d484383 (patch)
tree231dbccb4e1e0e9f8fac704cb4c13bc3c7b2e57b /ctdb/tests/tool
parent769407feabd4e6414da303b78a7b680f615a882b (diff)
downloadsamba-43f1209dc4484f456ccd47254955c0eb4d484383.tar.gz
samba-43f1209dc4484f456ccd47254955c0eb4d484383.tar.xz
samba-43f1209dc4484f456ccd47254955c0eb4d484383.zip
tests: Programs run by tests should be found in $PATH
Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit b5308142d03332d6d4e0c3b77283c772462fbb23)
Diffstat (limited to 'ctdb/tests/tool')
-rw-r--r--ctdb/tests/tool/scripts/local.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/ctdb/tests/tool/scripts/local.sh b/ctdb/tests/tool/scripts/local.sh
index 1105628a4b..dbff423c22 100644
--- a/ctdb/tests/tool/scripts/local.sh
+++ b/ctdb/tests/tool/scripts/local.sh
@@ -1,7 +1,5 @@
# Hey Emacs, this is a -*- shell-script -*- !!! :-)
-test_bin="$(dirname ${TEST_SUBDIR})/bin"
-
define_test ()
{
_f=$(basename "$0" ".sh")
@@ -10,12 +8,12 @@ define_test ()
func.*)
_func="${_f#func.}"
_func="${_func%.*}" # Strip test number
- test_prog="${test_bin}/ctdb_tool_libctdb ${_func}"
+ test_prog="ctdb_tool_libctdb ${_func}"
;;
stubby.*)
_cmd="${_f#stubby.}"
_cmd="${_cmd%.*}" # Strip test number
- test_prog="${test_bin}/ctdb_tool_stubby ${_cmd}"
+ test_prog="ctdb_tool_stubby ${_cmd}"
;;
*)
die "Unknown pattern for testcase \"$_f\""