Skip to content

Commit

Permalink
CI: GitHub Action to test AlmaLinux x86_64 distribution: Get and re-r…
Browse files Browse the repository at this point in the history
…un failed tests AlmaLinux#7
  • Loading branch information
yuravk committed Jul 19, 2024
1 parent 43d20b3 commit 966c1d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/almalinux-compose-test-x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ jobs:
name = almalinux-${{ inputs.version_major }}-${{ env.dnf_crb_repo }}-pulp
EOF
- name: Create yq.sh
run: |
cat <<'EOF'>./yq.sh
yq --no-doc '.[] | select(.result == "fail" or .result == "error") | .name' ${{ env.tmt_run_dir }}/plans/legacy/execute/results.yaml ${{ env.tmt_run_dir }}/plans/ng/execute/results.yaml > ${{ env.tmt_run_dir }}/tests_failed.txt
EOF
- name: Run vagrant up
run: sudo vagrant up almalinux

Expand Down Expand Up @@ -198,7 +204,7 @@ jobs:
# Create failed tests list
sudo vagrant ssh almalinux -c "sudo sh -c 'yq --no-doc \'.[] | select(.result == \"fail\" or .result == \"error\") | .name\' ${{ env.tmt_run_dir }}/plans/legacy/execute/results.yaml ${{ env.tmt_run_dir }}/plans/ng/execute/results.yaml > ${{ env.tmt_run_dir }}/tests_failed.txt'"
sudo vagrant ssh almalinux -c "sudo sh -c 'chmod +x /vagrant/yq.sh; /vagrant/yq.sh'"
sudo vagrant ssh almalinux -c "sudo cat ${{ env.tmt_run_dir }}/tests_failed.txt"
# - name: Re-run failed tests, prepare tests summary
Expand Down

0 comments on commit 966c1d3

Please sign in to comment.