TEST-74-AUX-UTILS: check for failed units after capsule test

TEST-74-AUX-UTILS has a number of subtests.
test/units/TEST-74-AUX-UTILS.capsule.sh runs first and starts and stops
capsule@foobar.service. Looking at the test, the unit is cleanly stopped.
But later test/units/TEST-74-AUX-UTILS.machine-id-setup.sh tests for
failed units. capsule@foobar.service is listed as failed, causing the
second subtest to fail.

Add the same test in test/units/TEST-74-AUX-UTILS.capsule.sh to see
if the failed test really originates from there.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-04-04 18:18:30 +01:00
committed by Luca Boccassi
parent afb64f1f11
commit 71c15cdbea
+5
View File
@@ -58,3 +58,8 @@ systemctl clean capsule@foobar.service --what=all
(! test -f /run/capsules/foobar )
(! test -f /var/lib/capsules/foobar )
(! id -u c-foobar )
systemctl status capsule@foobar.service || :
systemctl --state=failed --no-legend --no-pager | tee /failed
test ! -s /failed