Skip to content

Commit

Permalink
Trying to use dirname in array
Browse files Browse the repository at this point in the history
  • Loading branch information
Shihab Suliman committed May 10, 2024
1 parent ba41872 commit b791278
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/tests_group.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ work_dir=$2

# Find files matching timing name pattern
found_files=$(find "$search_dir" -type f -name "*.timing.ini")

echo $found_files
# Array of modules and their test count
module_grps=()

Expand All @@ -20,6 +20,7 @@ else
# Min 5 char to filter descriptions and index
count=$(grep -o '\[[^][]\{5,\}\]' "$file" | wc -l)
module_name=$(basename "$(dirname "$file")")
echo $module_name
module_grps+=("$module_name" "$count")
done
# Run python script to define job matrix based on found tests
Expand Down

0 comments on commit b791278

Please sign in to comment.