From 1df25b66bb26781563be6d746e5be9c047bff26c Mon Sep 17 00:00:00 2001 From: Jose Luis Rivero Date: Wed, 10 Apr 2024 19:31:24 +0200 Subject: [PATCH] Add the purge test Signed-off-by: Jose Luis Rivero --- .github/workflows/main.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 49f0d69..e6a19f1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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