public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/Lmod] rawhide: Simplify tmt tests
@ 2026-11-13 22:30 Cristian Le
0 siblings, 0 replies; only message in thread
From: Cristian Le @ 2026-11-13 22:30 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-13 22:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 22:30 [rpms/Lmod] rawhide: Simplify tmt tests Cristian Le
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox