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:
parent
65ce5e2129
commit
66cfddc61c
@ -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 ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user