Skip to content

Commit

Permalink
Add the purge test
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Luis Rivero <[email protected]>
  • Loading branch information
j-rivero committed Apr 10, 2024
1 parent b12a006 commit 1df25b6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,20 @@ jobs:
python3 gzdev.py repository list
repo_to_test="osrf"
repo_type_to_test="stable"
# Test --pre-cleanup
sudo env "PYTHONPATH=$pythonLocation/lib/python${{ matrix.python-version}}/site-packages" \
python3 ./gzdev.py repository enable ${repo_to_test} ${repo_type_to_test}
sudo env "PYTHONPATH=$pythonLocation/lib/python${{ matrix.python-version}}/site-packages" \
python3 ./gzdev.py repository --pre-cleanup enable ${repo_to_test} ${repo_type_to_test} >log
grep "/etc/apt/sources.list.d/_gzdev_${repo_to_test}_${repo_type_to_test}.list" log
grep "/usr/share/keyrings/_gzdev_${repo_to_test}_${repo_type_to_test}.gpg" log
# Test the purge action
sudo env "PYTHONPATH=$pythonLocation/lib/python${{ matrix.python-version}}/site-packages" \
python3 ./gzdev.py repository enable ${repo_to_test} ${repo_type_to_test}
sudo env "PYTHONPATH=$pythonLocation/lib/python${{ matrix.python-version}}/site-packages" \
python3 ./gzdev.py repository purge
grep "/etc/apt/sources.list.d/_gzdev_${repo_to_test}_${repo_type_to_test}.list" log
grep "/usr/share/keyrings/_gzdev_${repo_to_test}_${repo_type_to_test}.gpg" log
- name: Smoke system tests for ign-docker module
run: |
python3 gzdev.py ign-docker-env citadel
Expand Down

0 comments on commit 1df25b6

Please sign in to comment.