]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: remove extension from /var/lib/extensions at the end of the test
authorLuca Boccassi <luca.boccassi@gmail.com>
Mon, 8 Sep 2025 12:38:30 +0000 (13:38 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 9 Sep 2025 06:52:37 +0000 (08:52 +0200)
Otherwise it remains there, and another test case accidentally
uses it on refresh, which then makes another later test fail,
as the hierarchy is already merged:

[  203.969708] TEST-50-DISSECT.sh[890]: + systemd-sysext status
[  203.981831] TEST-50-DISSECT.sh[2795]: HIERARCHY EXTENSIONS SINCE
[  203.982196] TEST-50-DISSECT.sh[2795]: /opt      app0       Mon 2025-09-08 11:49:11 UTC
[  203.982551] TEST-50-DISSECT.sh[2795]: /usr      app0       Mon 2025-09-08 11:49:11 UTC

[  204.119772] TEST-50-DISSECT.sh[2799]: Hierarchy '/usr' is already merged.

Fixes https://github.com/systemd/systemd/issues/38282

test/units/TEST-50-DISSECT.sysext.sh

index 5302314d2617361bf50d007a1759722523e02b0b..3c8c7de8c1ce634ae0336f857aec877d63d78a20 100755 (executable)
@@ -1106,5 +1106,6 @@ systemd-sysext unmerge
 test ! -f /usr/lib/systemd/system/some_file
 mountpoint /usr/share
 umount /usr/share
+rm -f /var/lib/extensions/app0.raw
 
 exit 0