-#!/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"
"$@"