public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/virtme-ng] rawhide: Restructure tests to work around TMT bug
Date: Sat, 07 Nov 2026 16:07:14 GMT	[thread overview]
Message-ID: <179406763471.1.4704833805437659504.rpms-virtme-ng-587fa4fbd12c@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/virtme-ng
            Branch : rawhide
            Commit : 587fa4fbd12c925d7d04b3f6f9fddb9efc467378
            Author : Ondrej Mosnáček <omosnacek@gmail.com>
            Date   : 2026-11-07T16:52:02+01:00
            Stats  : +16/-15 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/virtme-ng/c/587fa4fbd12c925d7d04b3f6f9fddb9efc467378?branch=rawhide

            Log:
            Restructure tests to work around TMT bug

The `adjust` attribute doesn't work with tests defined via `discover:
how: shell` (see GH issue linked below). Work around it by using `how:
fmf` to discover tests.

Link: https://github.com/teemtee/tmt/issues/5321
Signed-off-by: Ondrej Mosnáček <omosnacek@gmail.com>

---
diff --git a/main.fmf b/main.fmf
new file mode 100644
index 0000000..331c976
--- /dev/null
+++ b/main.fmf
@@ -0,0 +1,16 @@
+/plans/ci:
+  summary: Run tests
+  discover:
+    how: fmf
+  execute:
+    how: tmt
+/tests:
+  /smoke:
+    summary: Basic smoke test
+    duration: 10m
+    require: [virtme-ng, qemu-kvm]
+    test: virtme-run --kimg --mods auto --script-sh lscpu
+    adjust:
+      - enabled: false
+        when: distro == fedora-eln
+        because: qemu-kvm isn't usable on ELN

diff --git a/plans/ci.fmf b/plans/ci.fmf
deleted file mode 100644
index 53924e0..0000000
--- a/plans/ci.fmf
+++ /dev/null
@@ -1,15 +0,0 @@
-summary: Run tests
-discover:
-  how: shell
-  tests:
-    - name: /smoke
-      summary: Basic smoke test
-      duration: 10m
-      require: [virtme-ng, qemu-kvm]
-      test: virtme-run --kimg --mods auto --script-sh lscpu
-      adjust:
-        - enabled: false
-          when: distro == fedora-eln
-          because: qemu-kvm isn't usable on ELN
-execute:
-  how: tmt

                 reply	other threads:[~2026-11-07 16:07 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=179406763471.1.4704833805437659504.rpms-virtme-ng-587fa4fbd12c@fedoraproject.org \
    --to=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