Skip to content

Commit

Permalink
Acceptance test: update repo 7
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkad committed Dec 9, 2024
1 parent a0c6afc commit 38e6531
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/power-acceptance-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
# Step 5 : Find modified files, set environment variables, and run tests
- name: Find modified files and run acceptance tests
run: |
# Create report file
# Process test files
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
Expand All @@ -61,10 +61,10 @@ jobs:
echo "Skipping ibm_pi_constants.go as it has no test file."
continue
fi
echo "Processing file: $file"
if [[ "$file" == *_test.go ]]; then
echo "Adding $file to the map"
echo "Adding $file to the list map"
modified_test_files_map["$file"]=1
else
Expand All @@ -78,11 +78,6 @@ jobs:
fi
done
echo "Keys and Values of modified_test_files_map:"
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 38e6531

Please sign in to comment.