mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3:tests: use SAMBA_DEPRECATED_SUPPRESS=1 for backbox tests
These tests should not depend on the number of deprecation warnings Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
12bc55ff7a
commit
9d047192a6
@ -18,6 +18,10 @@ SMBCLIENT=$2
|
||||
SERVER=$3
|
||||
SHARE=$4
|
||||
|
||||
# Do not let deprecated option warnings muck this up
|
||||
SAMBA_DEPRECATED_SUPPRESS=1
|
||||
export SAMBA_DEPRECATED_SUPPRESS
|
||||
|
||||
incdir=$(dirname $0)/../../../testprogs/blackbox
|
||||
. $incdir/subunit.sh
|
||||
|
||||
@ -50,7 +54,6 @@ exec 100>smbclient-stdin 101<smbclient-stdout 102<smbclient-stderr
|
||||
|
||||
# consume the smbclient startup messages
|
||||
head -n 1 <&101
|
||||
head -n 1 <&102
|
||||
|
||||
# Ensure we're putting a fresh file.
|
||||
echo "del aio_outstanding_testfile" >&100
|
||||
|
@ -22,6 +22,10 @@ SHARE=$5
|
||||
PREFIX=$6
|
||||
shift 6
|
||||
|
||||
# Do not let deprecated option warnings muck this up
|
||||
SAMBA_DEPRECATED_SUPPRESS=1
|
||||
export SAMBA_DEPRECATED_SUPPRESS
|
||||
|
||||
incdir=$(dirname $0)/../../../testprogs/blackbox
|
||||
. $incdir/subunit.sh
|
||||
. $incdir/common_test_fns.inc
|
||||
@ -71,7 +75,6 @@ exec 100>$FIFO_STDIN 101<$FIFO_STDOUT 102<$FIFO_STDERR
|
||||
|
||||
# consume the smbclient startup messages
|
||||
head -n 1 <&101
|
||||
head -n 1 <&102
|
||||
|
||||
# Ensure we're putting a fresh file.
|
||||
echo "lcd $(dirname $TESTFILE)" >&100
|
||||
|
@ -16,6 +16,10 @@ NET="$1"; shift 1
|
||||
SERVER="$1"; shift 1
|
||||
SHARE="$1"; shift 1
|
||||
|
||||
# Do not let deprecated option warnings muck this up
|
||||
SAMBA_DEPRECATED_SUPPRESS=1
|
||||
export SAMBA_DEPRECATED_SUPPRESS
|
||||
|
||||
incdir=$(dirname $0)/../../../testprogs/blackbox
|
||||
. $incdir/subunit.sh
|
||||
|
||||
@ -38,7 +42,6 @@ exec 100>smbclient-stdin 101<smbclient-stdout 102<smbclient-stderr
|
||||
|
||||
# consume the smbclient startup messages
|
||||
head -n 1 <&101
|
||||
head -n 1 <&102
|
||||
|
||||
FILE=x64
|
||||
|
||||
|
@ -16,6 +16,10 @@ SMBCONTROL=$1; shift 1
|
||||
SERVER=$1; shift 1
|
||||
SHARE=$1; shift 1
|
||||
|
||||
# Do not let deprecated option warnings muck this up
|
||||
SAMBA_DEPRECATED_SUPPRESS=1
|
||||
export SAMBA_DEPRECATED_SUPPRESS
|
||||
|
||||
error_inject_conf=$(dirname ${SERVERCONFFILE})/error_inject.conf
|
||||
> ${error_inject_conf}
|
||||
|
||||
@ -41,7 +45,6 @@ exec 100>smbclient-stdin 101<smbclient-stdout 102<smbclient-stderr
|
||||
|
||||
# consume the smbclient startup messages
|
||||
head -n 1 <&101
|
||||
head -n 1 <&102
|
||||
|
||||
echo "error_inject:openat = EINTR" > ${error_inject_conf}
|
||||
${SMBCONTROL} ${CONF} 0 reload-config
|
||||
|
Loading…
Reference in New Issue
Block a user