Skip to content

Commit 1d443f4

Browse files
committedAug 22, 2024··
packit.yml: run gating tests on PRs
1 parent d48c423 commit 1d443f4

File tree

6 files changed

+28
-3
lines changed

6 files changed

+28
-3
lines changed
 

‎.fmf/version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1

‎packit.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@ jobs:
2121
- centos-stream-10
2222
- fedora-all
2323

24+
- job: tests
25+
trigger: pull_request
26+
targets:
27+
- fedora-39
28+
- fedora-39-aarch64
29+
- fedora-40
30+
- fedora-40-aarch64
31+
- centos-stream-9
32+
- centos-stream-9-aarch64
33+
- centos-stream-10
34+
2435
- job: copr_build
2536
trigger: commit
2637
branch: "^main$"

‎plans/all.fmf

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
summary:
2+
Run all tests
3+
discover:
4+
how: fmf
5+
execute:
6+
how: tmt
7+
8+
# Let's handle them upstream only, don't break Fedora/RHEL reverse dependency gating
9+
environment:
10+
TEST_AUDIT_NO_SELINUX: 1

‎test/browser/main.fmf

+1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
- python3
1919
- targetcli
2020
- tlog
21+
- podman
2122
test: ./browser.sh
2223
duration: 1h

‎test/verify/composerlib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def setUp(self):
4545

4646
# push pre-defined blueprint
4747
self.machine.execute("""
48-
for toml_file in /home/admin/files/*.toml; do
48+
for toml_file in /etc/osbuild-composer/blueprints/*.toml; do
4949
composer-cli blueprints push $toml_file
5050
done
5151
""")

‎test/vm.install

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,17 @@ if [ -n "$VG" ]; then
1313
fi
1414

1515
# Repositories in /etc/osbuild-composer/repositories are used only for on-premise
16-
REPODIR=/etc/osbuild-composer/repositories
17-
sudo mkdir -p $REPODIR
16+
sudo mkdir -p /etc/osbuild-composer/repositories
17+
sudo mkdir -p /etc/osbuild-composer/blueprints
1818
# Copy rhel nightly overrides
1919
if [ -d /home/admin/files ]; then
2020
cp /home/admin/files/rhel-95.json /etc/osbuild-composer/repositories/rhel-95.json
2121
cp /home/admin/files/rhel-10.json /etc/osbuild-composer/repositories/rhel-10.0.json
22+
cp /home/admin/files/*.toml /etc/osbuild-composer/blueprints/
2223
else
2324
cp test/files/rhel-95.json /etc/osbuild-composer/repositories/rhel-95.json
2425
cp test/files/rhel-10.json /etc/osbuild-composer/repositories/rhel-10.json
26+
cp test/files/*.toml /etc/osbuild-composer/blueprints/
2527
fi
2628
ln -s /etc/osbuild-composer/repositories/rhel-95.json /etc/osbuild-composer/repositories/rhel-95-beta.json
2729
ln -s /etc/osbuild-composer/repositories/rhel-95.json /etc/osbuild-composer/repositories/rhel-95-ga.json

0 commit comments

Comments
 (0)
Please sign in to comment.