ctdb: Remove an unnecessary cast
[vlendec/samba-autobuild/.git] / ctdb / tests / scripts / test_wrap
index 35ad41830f319fdcfa49e8993df4244e2260bd46..619ac7ca5dce89c780e7acac26b38527d32b0321 100755 (executable)
@@ -1,10 +1,11 @@
-#!/bin/bash
+#!/usr/bin/env bash
 
-# Execute the given command.  The intention is that it is a function
-# from ctdb_test_functions.bash.
+# Execute the given command.  The intention is that it is either
+# * a function from "${TEST_SCRIPTS_DIR}/integration.bash"; or
+# * a test helper binary
 
-PATH="$(dirname $0):${PATH}"
+TEST_SCRIPTS_DIR=$(dirname "$0")
 
-. ctdb_test_functions.bash
+. "${TEST_SCRIPTS_DIR}/integration.bash"
 
 "$@"