Skip to content

Commit c675889

Browse files
committed
Add diagnosis to failing hostap CI tests
1 parent 43e44cb commit c675889

1 file changed

Lines changed: 14 additions & 16 deletions

File tree

.github/workflows/hostap-vm.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -358,19 +358,17 @@ jobs:
358358
if: ${{ failure() && steps.testing.outcome == 'failure' }}
359359
run: grep -riP 'fail|error' /tmp/hwsim-test-logs/latest
360360

361-
# The logs are quite big. It hasn't been useful so far so let's not waste
362-
# precious gh space.
363-
#- name: zip logs
364-
# if: ${{ failure() && steps.testing.outcome == 'failure' }}
365-
# working-directory: hostap/tests/hwsim/
366-
# run: |
367-
# rm /tmp/hwsim-test-logs/latest
368-
# zip -9 -r logs.zip /tmp/hwsim-test-logs
369-
#
370-
#- name: Upload failure logs
371-
# if: ${{ failure() && steps.testing.outcome == 'failure' }}
372-
# uses: actions/upload-artifact@v4
373-
# with:
374-
# name: hostap-logs-${{ env.our_job_run_id }}
375-
# path: hostap/tests/hwsim/logs.zip
376-
# retention-days: 5
361+
- name: zip logs
362+
if: ${{ failure() && steps.testing.outcome == 'failure' }}
363+
working-directory: hostap/tests/hwsim/
364+
run: |
365+
rm /tmp/hwsim-test-logs/latest
366+
zip -9 -r logs.zip /tmp/hwsim-test-logs
367+
368+
- name: Upload failure logs
369+
if: ${{ failure() && steps.testing.outcome == 'failure' }}
370+
uses: actions/upload-artifact@v4
371+
with:
372+
name: hostap-logs-${{ env.our_job_run_id }}
373+
path: hostap/tests/hwsim/logs.zip
374+
retention-days: 5

0 commit comments

Comments
 (0)