]> 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)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 7 Oct 2025 09:48:58 +0000 (11:48 +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

(cherry picked from commit 9cc9e14ed4671eb8c0424b465504202371e17419)

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