Skip to content

Commit

Permalink
ci: Run dnf update in packit tests
Browse files Browse the repository at this point in the history
The daily builds copr repository is enabled after installing the
packages so we need to run an update to get the latest version of
libblockdev.
  • Loading branch information
vojtechtrefny committed Aug 14, 2024
1 parent d9ae9ff commit 031638a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
trigger: pull_request
targets:
- fedora-latest-stable
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/g/storage/blivet-daily/repo/fedora-$releasever/group_storage-blivet-daily-fedora-$releasever.repo

# run tests for udisks consumers, see plans/ with `revdeps == yes`
- job: tests
Expand Down
11 changes: 10 additions & 1 deletion plans/tests.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,20 @@ prepare:
script:
- sudo dnf install -y 'dnf-command(copr)'
- sudo dnf copr enable -y @storage/blivet-daily
- rpm -qq libblockdev
- rpm -qq python3-blockdev
- sudo dnf clean all
- sudo dnf -y update --refresh
- rpm -qq libblockdev
- rpm -qq python3-blockdev
- sudo dnf info libblockdev
- sudo dnf -y update libblockdev -d 10
- sudo dnf -y install libblockdev-3.1.1-99.20240814064123645242.master.140.g288c2e53.fc40

- name: ansible
how: ansible
playbook: misc/install-test-dependencies.yml

execute:
how: tmt
script: sudo make test
script: sudo make check

0 comments on commit 031638a

Please sign in to comment.