public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Milos Malik <mmalik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] pr775-checkpolicy-revdeps: add a CI-for-tests plan
Date: Fri, 11 Sep 2026 13:19:48 GMT [thread overview]
Message-ID: <178913278800.1.5164178091650528956.tests-selinux-7a1caf666f44@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 7a1caf666f444b9595ed8eed5e721c931c5d2e67
Author : Milos Malik <mmalik@redhat.com>
Date : 2022-04-25T06:09:41+00:00
Stats : +32/-42 in 5 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/7a1caf666f444b9595ed8eed5e721c931c5d2e67?branch=pr775-checkpolicy-revdeps
Log:
add a CI-for-tests plan
This plan should run only tests that have been modified in the given
pull request.
---
diff --git a/plans/ci.fmf b/plans/ci.fmf
new file mode 100644
index 0000000..454574d
--- /dev/null
+++ b/plans/ci.fmf
@@ -0,0 +1,9 @@
+summary: CI test plan that runs only modified tests
+discover:
+ how: fmf
+ modified-only: true
+ modified-url: https://src.fedoraproject.org/tests/selinux
+ modified-ref: reference/main
+execute:
+ how: tmt
+
diff --git a/selinux-policy/rtkit-daemon-and-similar/Makefile b/selinux-policy/rtkit-daemon-and-similar/Makefile
index 4e5588f..35430d8 100644
--- a/selinux-policy/rtkit-daemon-and-similar/Makefile
+++ b/selinux-policy/rtkit-daemon-and-similar/Makefile
@@ -1,7 +1,7 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Makefile of /CoreOS/selinux-policy/Regression/rtkit-daemon-and-similar
-# Description: the service was running as initrc_t, now it is confined by SELinux
+# Description: SELinux interferes with rtkit daemon and related programs
# Author: Milos Malik <mmalik@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/selinux-policy/rtkit-daemon-and-similar/main.fmf b/selinux-policy/rtkit-daemon-and-similar/main.fmf
index 358e482..1aec75d 100644
--- a/selinux-policy/rtkit-daemon-and-similar/main.fmf
+++ b/selinux-policy/rtkit-daemon-and-similar/main.fmf
@@ -2,3 +2,24 @@ path: /selinux-policy/rtkit-daemon-and-similar
summary: SELinux interferes with rtkit daemon and related programs
description: |
Test coverage for SELinux AVC issues against rtkit daemon and related programs.
+component:
+ - selinux-policy
+framework: beakerlib
+require:
+ - library(selinux-policy/common)
+recommend:
+ - audit
+ - libselinux-utils
+ - policycoreutils
+ - rtkit
+ - selinux-policy
+ - selinux-policy-targeted
+ - setools-console
+ - /usr/sbin/service
+duration: 15m
+tier: '2'
+adjust:
+ - enabled: false
+ when: distro == rhel-4, rhel-5
+ continue: false
+
diff --git a/selinux-policy/rtkit-daemon-and-similar/runtest.sh b/selinux-policy/rtkit-daemon-and-similar/runtest.sh
index b6e88e8..f7e2613 100755
--- a/selinux-policy/rtkit-daemon-and-similar/runtest.sh
+++ b/selinux-policy/rtkit-daemon-and-similar/runtest.sh
@@ -3,7 +3,7 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# runtest.sh of /CoreOS/selinux-policy/Regression/rtkit-daemon-and-similar
-# Description: the service was running as initrc_t, now it is confined by SELinux
+# Description: SELinux interferes with rtkit daemon and related programs
# Author: Milos Malik <mmalik@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -27,7 +27,6 @@
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Include Beaker environment
-. /usr/bin/rhts-environment.sh || exit 1
. /usr/share/beakerlib/beakerlib.sh || exit 1
PACKAGE="selinux-policy"
diff --git a/tests-pr.yml b/tests-pr.yml
deleted file mode 100644
index f06af2b..0000000
--- a/tests-pr.yml
+++ /dev/null
@@ -1,39 +0,0 @@
-- hosts: localhost
- tags:
- - classic
-
- pre_tasks:
- - name: Generate list of tests in this PR
- shell: |
- git fetch https://src.fedoraproject.org/tests/selinux.git main:upstream-main
- git log --format= --stat --name-only upstream-main..HEAD | sed '/\//!d;s#\(.*\)/.*#\1#' | sort -u | xargs
- delegate_to: localhost
- register: tests_list
-
- - name: Set tests
- set_fact:
- tests: "{{ tests_list.stdout.split(' ') }}"
-
- # Update to the latest kernel to allow installing kernel-* packages
- # matching the running kernel version.
- # See: https://pagure.io/fedora-ci/general/issue/162
- # May be removed once the issue above is resolved.
- - name: Update kernel packages and reboot
- block:
- - name: Update kernel-core
- shell: dnf update -y kernel-core
-
- - name: Restart host
- shell: sleep 2 && shutdown -r now "Ansible updates triggered"
- async: 1
- poll: 0
- ignore_errors: true
-
- - name: Wait for host to come back
- wait_for_connection:
- delay: 10
- timeout: 300
-
- roles:
- - role: standard-test-beakerlib
-
reply other threads:[~2026-09-11 13:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178913278800.1.5164178091650528956.tests-selinux-7a1caf666f44@fedoraproject.org \
--to=mmalik@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox