1
0
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:
Stefan Metzmacher 2021-07-14 06:30:03 +02:00
parent 12bc55ff7a
commit 9d047192a6
4 changed files with 16 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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