test: don't use /skipped for subtests
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 2 Aug 2024 08:13:47 +0000 (10:13 +0200)
committerLuca Boccassi <bluca@debian.org>
Thu, 15 Aug 2024 13:04:41 +0000 (14:04 +0100)
Since, at least the old framework, checks for the presence of the file
at the end and marks the whole test as skipped if it exists.

Resolves: systemd/systemd-centos-ci#728
(cherry picked from commit 4d1fbe53c1cc9b04acd897c728d996191daa618d)

test/units/TEST-04-JOURNAL.bsod.sh
test/units/TEST-17-UDEV.credentials.sh

index 83feb892be05ab09393101c50c829c1259a561e4..802d474f163f190f28f9b3ef2875c3b659a6a81b 100755 (executable)
@@ -4,12 +4,12 @@ set -eux
 set -o pipefail
 
 if systemd-detect-virt -cq; then
-    echo "This test requires a VM, skipping the test" | tee --append /skipped
+    echo "This test requires a VM, skipping the test"
     exit 0
 fi
 
 if [[ ! -x /usr/lib/systemd/systemd-bsod ]]; then
-    echo "systemd-bsod is not installed, skipping the test" | tee --append /skipped
+    echo "systemd-bsod is not installed, skipping the test"
     exit 0
 fi
 
index 42d3883c3964bdc43b41fe9734c4d539f1ffbf05..2552dc6809f68bfdc2b43ed876e80b2c6a4721cb 100755 (executable)
@@ -5,7 +5,7 @@ set -eux
 set -o pipefail
 
 if [[ $(systemctl is-enabled systemd-udev-load-credentials.service) == not-found ]]; then
-    echo "Missing systemd-udev-load-credentials.service" >>/skipped
+    echo "Missing systemd-udev-load-credentials.service"
     exit 0
 fi