Skip to content
Snippets Groups Projects
Commit a0da9860 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-7160: update run groups script to now use just straight groups

parent 20ca00c1
No related branches found
No related tags found
2 merge requests!83ISTWCMS-7160 Fix service content type in testAutomaticListBlocksSettings in...,!81ISTWCMS-7160 Make existing Codeception tests pass
......@@ -32,8 +32,6 @@ echo "************************************"
echo "Getting groups from tests ..."
echo "************************************"
echo "Found group: blocklistparity"
# Loop through all files in the directory
for file in "$directory"/*; do
......@@ -49,25 +47,19 @@ for file in "$directory"/*; do
# Remove the @group from the extracted text
extracted_text=${extracted_text//"@group "/}
if [ "$extracted_text" != "blocklistparity" ]; then
# Check if extracted text is not empty and is not already in the array
if [[ -n "$extracted_text" && ! " ${unique_values[@]} " =~ " ${extracted_text} " ]]; then
# Check if extracted text is not empty and is not already in the array
if [[ -n "$extracted_text" && ! " ${unique_values[@]} " =~ " ${extracted_text} " ]]; then
# Add the extracted text to the array
unique_values+=("$extracted_text")
# Add the extracted text to the array
unique_values+=("$extracted_text")
# Output to the screen so we see some progress
echo "Found group: $extracted_text"
fi
# Output to the screen so we see some progress
echo "Found group: $extracted_text"
fi
done < "$file"
fi
done
# Add block list parity at the beginning.
unique_values=('blocklistparity' "${unique_values[@]:0}")
echo "************************************"
echo "Done getting groups from tests."
echo "************************************"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment