public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Cristian Le <git@lecris.dev>
To: git-commits@fedoraproject.org
Subject: [rpms/Lmod] rawhide: Simplify tmt tests
Date: Fri, 13 Nov 2026 22:30:48 GMT	[thread overview]
Message-ID: <179460904861.1.10385396481801902788.rpms-Lmod-7859a8838011@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/Lmod
            Branch : rawhide
            Commit : 7859a8838011a0a86f601700670b424d37aae52c
            Author : Cristian Le <git@lecris.dev>
            Date   : 2026-11-13T16:44:46+01:00
            Stats  : +8/-14 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/Lmod/c/7859a8838011a0a86f601700670b424d37aae52c?branch=rawhide

            Log:
            Simplify tmt tests

[skip changelog]

---
diff --git a/plans.fmf b/plans.fmf
index 1239d6e..492ca12 100644
--- a/plans.fmf
+++ b/plans.fmf
@@ -2,11 +2,12 @@ summary: Run all tests
 discover:
   how: fmf
 prepare:
-  - name: Disable installing everything from srpm
-    how: install
-    exclude: ".*"
   - name: Install the main package
     how: install
     package: Lmod
+  - name: Source module profile file
+    how: shell
+    script: |
+      echo 'source /etc/profile.d/modules.sh' >> $TMT_PLAN_SOURCE_SCRIPT
 execute:
   how: tmt

diff --git a/tests/avail.fmf b/tests/avail.fmf
deleted file mode 100644
index 29c9fe2..0000000
--- a/tests/avail.fmf
+++ /dev/null
@@ -1,3 +0,0 @@
-summary: Basic smoke test
-test+: |
-  ml avail

diff --git a/tests/load.fmf b/tests/load.fmf
deleted file mode 100644
index a6e890b..0000000
--- a/tests/load.fmf
+++ /dev/null
@@ -1,3 +0,0 @@
-summary: Test module load
-test+: |
-  ml load lmod

diff --git a/tests/main.fmf b/tests/main.fmf
deleted file mode 100644
index f15c0db..0000000
--- a/tests/main.fmf
+++ /dev/null
@@ -1,5 +0,0 @@
-# Need to source /etc/profile.d before all tests
-# this is not available in prepare steps yet, so we add them manually here
-# Make sure that all tests are using `test+:` in order to append to the steup added here
-test: |
-  source /etc/profile.d/modules.sh

diff --git a/tests/smoke.fmf b/tests/smoke.fmf
new file mode 100644
index 0000000..223f382
--- /dev/null
+++ b/tests/smoke.fmf
@@ -0,0 +1,4 @@
+summary: Basic smoke test
+test: |
+  ml avail
+  ml load lmod

                 reply	other threads:[~2026-11-13 22:30 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=179460904861.1.10385396481801902788.rpms-Lmod-7859a8838011@fedoraproject.org \
    --to=git@lecris.dev \
    --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