Skip to content

Commit

Permalink
Acceptance test: update repo 5
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkad committed Dec 9, 2024
1 parent eeaa2c9 commit 7f36d4c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/power-acceptance-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
mkdir -p test-results
declare -A modified_test_files_map
# Get the list of modified Go files in the PR under the ibm/service/power directory
git fetch origin
git fetch origin -q
modified_go_files=$(git diff --name-only origin/${{ github.event.pull_request.base.ref }} -- 'ibm/service/power/*.go')
echo "Modified files: $modified_go_files"
Expand All @@ -61,8 +61,9 @@ jobs:
echo "Skipping ibm_pi_constants.go as it has no test file."
continue
fi
if [["$file" == *_test.go ]]; then
echo "Processing file: $file"
if [[ "$file" == *_test.go ]]; then
echo "Adding $file to the map"
modified_test_files_map["$file"]=1
else
Expand All @@ -81,7 +82,7 @@ jobs:
for key in "${!modified_test_files_map[@]}"; do
echo "$key => ${modified_test_files_map[$key]}"
done
# If there are modified test files, run the tests
if [ ${#modified_test_files_map[@]} -gt 0 ]; then
modified_test_files=$(echo "${!modified_test_files_map[@]}")
Expand Down

0 comments on commit 7f36d4c

Please sign in to comment.