1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

ctdb-tests: Use setup_script_options() in 50.samba tests

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2018-03-22 12:03:56 +11:00 committed by Amitay Isaacs
parent ecda38c894
commit 96ed6c34ba
2 changed files with 11 additions and 3 deletions

View File

@ -6,7 +6,9 @@ define_test "non-existent share - not checked"
setup
setup_script_options <<EOF
CTDB_SAMBA_SKIP_SHARE_CHECK="yes"
EOF
ok_null

View File

@ -11,7 +11,9 @@ setup ()
service "$i" force-started
done
export CTDB_MANAGES_SAMBA="yes"
setup_script_options <<EOF
CTDB_MANAGES_SAMBA="yes"
EOF
setup_tcp_listen 445 139
@ -27,12 +29,16 @@ setup ()
service "$i" force-stopped
done
export CTDB_MANAGES_SAMBA=""
setup_script_options <<EOF
CTDB_MANAGES_SAMBA=""
EOF
setup_tcp_listen
fi
export CTDB_SAMBA_SKIP_SHARE_CHECK="no"
setup_script_options <<EOF
CTDB_SAMBA_SKIP_SHARE_CHECK="no"
EOF
setup_shares