Skip to content

Commit

Permalink
tests: allow skipping the rpm integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Feb 23, 2023
1 parent 3e50436 commit 734d9d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ jobs:
# Remove newer go and install regular version for 20.04
sudo snap remove go
sudo apt install -y golang
# Install RPM dependencies for RPM tests
sudo apt install rpm
- name: Run unit tests
run: |
make test-units
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/sources/test_rpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import platform
import shutil
import subprocess
import textwrap
from pathlib import Path
Expand Down Expand Up @@ -83,6 +84,7 @@ def sample_rpm(tmp_path: Path) -> Path:
return rpm_path


@pytest.mark.skipif(not shutil.which("rpmbuild"), reason="rpmbuild is not installed")
def test_source_rpm(sample_rpm, tmp_path):
parts_yaml = textwrap.dedent(
f"""\
Expand Down

0 comments on commit 734d9d4

Please sign in to comment.