ci: Fix to skip the commented lines from limited-tests.txt (#25197)

## Description
- Fix to skip the commented lines from limited-tests.txt

#### Type of change
- Workflow file chnage
## Testing
>
#### How Has This Been Tested?
- Manual workflow run
This commit is contained in:
Saroj 2023-07-07 14:57:29 +05:30 committed by GitHub
parent b0cb488caf
commit 188976376a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,13 +110,9 @@ jobs:
echo "failed_spec_env<<EOF" >> $GITHUB_ENV
while IFS= read -r line
do
if [[ $line =~ ^#|^\/\/ ]]; then
continue
else
spec_name=$(echo $line | awk -F'/' '{print $NF}')
failed_spec_env=$(find . -name $spec_name | sed 's|./||')
echo "$failed_spec_env" >> $GITHUB_ENV
fi
spec_name=$(echo $line | awk -F'/' '{print $NF}')
failed_spec_env=$(find . -name $spec_name | sed 's|./||')
echo "$failed_spec_env" >> $GITHUB_ENV
done < ~/combined_failed_spec_ci/combined_failed_spec_ci
echo "EOF" >> $GITHUB_ENV
@ -124,9 +120,15 @@ jobs:
- name: Get specs to run
if: steps.run_result.outputs.run_result != 'success'
run: |
specs_to_run=$(cat app/client/cypress/limited-tests.txt)
echo "specs_to_run<<EOF" >> $GITHUB_ENV
echo "$specs_to_run" >> $GITHUB_ENV
while IFS= read -r line
do
if [[ $line =~ ^#|^\/\/ ]]; then
continue
else
echo "$line" >> $GITHUB_ENV
fi
done < app/client/cypress/limited-tests.txt
echo "EOF" >> $GITHUB_ENV
# In case of run-id provided download the artifact from the previous run