From f26c678a2ca550de6207634a8ea1461699cf54d6 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Tue, 19 Nov 2019 15:45:35 +0000 Subject: [PATCH] s3/script/tests: Allow test script to accept option protocol list test_preserve_case.sh tests a range of protocols, this however fails when running against the normal test env (which have min protocol of SMB2) because one of the protocols is NT1. This change allows tests to pass the protocol (or list of protocols) so that tests can be split. Signed-off-by: Noel Power Reviewed-by: Ralph Boehme --- source3/script/tests/test_preserve_case.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source3/script/tests/test_preserve_case.sh b/source3/script/tests/test_preserve_case.sh index 2e49b0c0c84..04885f12a1e 100755 --- a/source3/script/tests/test_preserve_case.sh +++ b/source3/script/tests/test_preserve_case.sh @@ -17,7 +17,13 @@ USERNAME=$3 PASSWORD=$4 PREFIX=$5 smbclient=$6 -shift 6 +if [ $# -gt 6 ]; then + PROTOCOL_LIST=$7 + shift 7 +else + PROTOCOL_LIST="NT1 SMB2 SMB3" + shift 6 +fi failed=0 incdir=`dirname $0`/../../../testprogs/blackbox @@ -40,7 +46,6 @@ test_smbclient() { return $status } -PROTOCOL_LIST="NT1 SMB2 SMB3" SHARE="lowercase" for PROTOCOL in $PROTOCOL_LIST; do -- 2.47.3