]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: Make the sysext test to run with --root and without 31987/head
authorKrzesimir Nowak <knowak@microsoft.com>
Fri, 12 Apr 2024 13:12:31 +0000 (15:12 +0200)
committerKrzesimir Nowak <knowak@microsoft.com>
Fri, 19 Apr 2024 08:24:17 +0000 (10:24 +0200)
commitd74d69ae532140c0fb7524f2b9c2bb0468c17495
tree24be7f3bc301c10006e8dd7dad6e75db432ffe48
parentd3577fb7baed1b5099c90c4fc324cd5c54b7b723
test: Make the sysext test to run with --root and without

I was bitten several times by testing things only with --root flag, so this
commit prepares the existing test cases to run on / too. This required the test
cases to clean up after themselves, thus I have put each test case in a
separate subshell and used traps to do the cleanups.

I needed to change the hierarchy used by the test extension to /opt, because
unmounting /usr often failed with EBUSY.
test/units/testsuite-50.sysext.sh