Skip to content

Commit

Permalink
LRCI-4167 Wordsmith
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed Sep 12, 2024
1 parent 419ebaa commit bfddf4d
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions modules/test/playwright/env/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,21 @@ function deploy_client_extensions {

if [[ -n $(cat ${client_extensions_list_file}) ]]
then
echo "Deploying Client Extensions in ${client_extensions_list_file}"
echo "Deploying client extensions in ${client_extensions_list_file}."

local client_extension_name

for client_extension_name in $(cat ${client_extensions_list_file})
do
local client_extension_dir=$(find ${_PORTAL_PROJECT_DIR}/workspaces -type d -name "${client_extension_name}" | grep -v .releng | grep -v .npmscripts | grep -v node_modules)

if [[ $(echo ${client_extension_dir} | wc -w | grep -o -E '[0-9]+') > 1 ]]
then
echo "Duplicate Client Extensions found for ${client_extension_name}:"
echo "Duplicate client extensions found for ${client_extension_name}:"

printf "%s\n" ${client_extension_dir}

echo "Please replace \"${client_extension_name}\" in ${client_extensions_list_file} with one of the following:"
echo "Replace \"${client_extension_name}\" in ${client_extensions_list_file} with one of the following:"

for dir in ${client_extension_dir}
do
Expand All @@ -103,7 +105,7 @@ function deploy_client_extensions {

if [[ -d ${client_extension_dir} ]]
then
echo "Deploying ${client_extension_dir}"
echo "Deploying ${client_extension_dir}."

cd ${client_extension_dir}

Expand All @@ -113,7 +115,7 @@ function deploy_client_extensions {

wait_for_portal_log_inactivity
else
echo "Unable to find Client Extension directory at ${client_extension_dir}"
echo "Unable to find client extension in ${client_extension_dir}."
fi
done
fi
Expand Down Expand Up @@ -146,7 +148,9 @@ function deploy_osgi_modules {

if [[ -n $(cat ${osgi_modules_list_file}) ]]
then
echo "Deploying OSGi modules in ${osgi_modules_list_file}"
echo "Deploying OSGi modules in ${osgi_modules_list_file}."

local osgi_module_name

for osgi_module_name in $(cat ${osgi_modules_list_file})
do
Expand All @@ -158,7 +162,7 @@ function deploy_osgi_modules {

printf "%s\n" ${osgi_module_dir}

echo "Please replace \"${osgi_module_name}\" in ${osgi_modules_list_file} with one of the following:"
echo "Replace \"${osgi_module_name}\" in ${osgi_modules_list_file} with one of the following:"

for dir in ${osgi_module_dir}
do
Expand All @@ -170,7 +174,7 @@ function deploy_osgi_modules {

if [[ -f ${osgi_module_dir}/build.gradle ]]
then
echo "Deploying ${osgi_module_dir}"
echo "Deploying ${osgi_module_dir}."

cd ${osgi_module_dir}

Expand All @@ -180,7 +184,7 @@ function deploy_osgi_modules {

wait_for_portal_log_inactivity
else
echo "Unable to find OSGi module directory at ${osgi_module_dir}"
echo "Unable to find OSGi module in ${osgi_module_dir}."
fi
done
fi
Expand Down

0 comments on commit bfddf4d

Please sign in to comment.