From 58007a0ed6c0b65eedae904b77a3b711dad5e8f1 Mon Sep 17 00:00:00 2001 From: Jo Zzsi Date: Sat, 13 Sep 2025 19:55:28 -0400 Subject: [PATCH] ci: enable controlling TEST_FSTYPE as part of container test run Pass TEST_FSTYPE to the test container and document a more complex test run using TEST_FSTYPE. --- doc_site/modules/ROOT/pages/developer/hacking.adoc | 7 +++++++ test/test.sh | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/doc_site/modules/ROOT/pages/developer/hacking.adoc b/doc_site/modules/ROOT/pages/developer/hacking.adoc index d3b06408d..09d14f819 100644 --- a/doc_site/modules/ROOT/pages/developer/hacking.adoc +++ b/doc_site/modules/ROOT/pages/developer/hacking.adoc @@ -137,6 +137,13 @@ Run test in extra verbose mode (enabled for debug logging):: {empty} $ V=2 test/test.sh ---- +Run test 20 with `btrfs` omitting `systemd` dracut module on `debian` :: {empty} ++ +[,console] +---- +$ TESTS="20" TEST_FSTYPE=btrfs TEST_DRACUT_ARGS="--omit systemd" test/test.sh debian +---- + === On bare metal For the testsuite to pass, you will have to install at least the software packages diff --git a/test/test.sh b/test/test.sh index fcd6211c2..044050bfc 100755 --- a/test/test.sh +++ b/test/test.sh @@ -49,7 +49,7 @@ fi # clear previous test run TARGETS='clean all install check' "$PODMAN" run --rm -it \ --device=/dev/kvm --privileged \ - -e V -e TESTS -e TEST_RUN_ID -e TARGETS -e MAKEFLAGS -e TEST_DRACUT_ARGS \ + -e V -e TESTS -e TEST_RUN_ID -e TARGETS -e MAKEFLAGS -e TEST_DRACUT_ARGS -e TEST_FSTYPE \ -v "$PWD"/:/z \ "$CONTAINER" \ /z/test/test-container.sh -- 2.47.3