From cf46fd1619647b3d984f3bdd2f349bf755c7caf3 Mon Sep 17 00:00:00 2001 From: ashitsalesforce Date: Wed, 10 Jan 2024 19:27:58 -0800 Subject: [PATCH] minor change to test execution script Quote the parameter to -name so the shell won't interpret it --- runtests.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/runtests.sh b/runtests.sh index f5d80f45..4e495358 100755 --- a/runtests.sh +++ b/runtests.sh @@ -69,8 +69,13 @@ if [ ! -d ./target ]; then mvn package -Dmaven.test.skip=true fi -jarname="$(find ./target -name dataloader-[0-9][0-9].[0-9].[0-9].jar | tail -1)" +jarname="$(find ./target -name 'dataloader-[0-9][0-9].[0-9].[0-9].jar' | tail -1)" #echo "password = ${4}" encryptedPassword="$(java ${debugEncryption} -cp ${jarname} com.salesforce.dataloader.process.DataLoaderRunner run.mode=encrypt -e ${4} ${encryptionFile} | tail -1)" + +# uncomment the following lines to debug issues with password encryption #echo "encryptedPassword = ${encryptedPassword}" +#decryptedPassword="$(java ${debugEncryption} -cp ${jarname} com.salesforce.dataloader.process.DataLoaderRunner run.mode=encrypt -d ${encryptedPassword} ${encryptionFile} | tail -1)" +#echo "decryptedPassword = ${decryptedPassword}" + mvn ${failfast} -Dtest.endpoint=${1} -Dtest.user.default=${2} -Dtest.user.restricted=${3} -Dtest.password=${encryptedPassword} -Dtest.encryptionFile=${encryptionFile} verify ${debug} ${test} \ No newline at end of file