1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-09 09:57:48 +03:00

ctdb-tests: Script options into per-script file

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2018-02-19 14:58:48 +11:00 committed by Amitay Isaacs
parent 65ce5e2129
commit 66cfddc61c

View File

@ -75,12 +75,12 @@ fi
# input is a variable assignment and evals it with export prepended.
setup_script_options ()
{
while read line ; do
case "$line" in
\#*|"") : ;;
*) eval "export $line"
esac
done
_options="${script_dir}/${script%.script}.options"
cat >>"$_options"
# Source the options so that tests can use the variables
. "$_options"
}
setup_dbdir ()