Skip to content

Commit

Permalink
test: run one test only
Browse files Browse the repository at this point in the history
Temporary patch to execute one test, I'm working on.

Signed-off-by: Mariusz Tkaczyk <[email protected]>
  • Loading branch information
mtkaczyk committed Nov 29, 2024
1 parent 4447238 commit 4e731b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/tools/run_mdadm_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sudo make -j$(nproc)
sudo make install
sudo mdadm -Ss
sudo ./test setup
sudo ./test --skip-broken --no-error --disable-integrity --disable-multipath --disable-linear --keep-going
sudo ./test --tests=05r1-re-add-nosuper
ret=$?
sudo ./test cleanup
exit $ret
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ on:
- '*.h'
- 'tests/*'
- 'test'
- '.github/tools/run_mdadm_tests.sh'
jobs:
upstream_tests:
if: ${{ github.repository == 'md-raid-utilities/mdadm' }}
runs-on: self-hosted
timeout-minutes: 150
name: upstream tests
continue-on-error: true
steps:
- uses: actions/checkout@v4
if: ${{ github.event_name == 'pull_request' }}
Expand All @@ -32,6 +34,8 @@ jobs:
vagrant status
vagrant up
- name: 'Run tests'
id: testing
continue-on-error: true
run: |
cd ..
vagrant ssh -c "cd /home/vagrant/host/mdadm && .github/tools/run_mdadm_tests.sh"
Expand All @@ -48,6 +52,8 @@ jobs:
run: |
cd ..
sudo rm /home/ci/actions-runner/_work/mdadm/logs/*.log
- name: "Return test status"
run: exit ${{ steps.testing.outcome }}
cleanup:
runs-on: self-hosted
needs: [upstream_tests]
Expand Down

0 comments on commit 4e731b8

Please sign in to comment.