test: mount overlayfs over /usr in some tests
authorRichard Maw <richard.maw@codethink.co.uk>
Fri, 8 Dec 2023 18:56:25 +0000 (18:56 +0000)
committerRichard Maw <richard.maw@codethink.co.uk>
Wed, 13 Dec 2023 17:55:45 +0000 (17:55 +0000)
commit8799346862285903a2348dad5e0a0cf513f8317e
treeee8cc140da012b394e9e95def2b1b0b8f8ad60d1
parent0129395173773574cca07523797df18980baf7ff
test: mount overlayfs over /usr in some tests

Most of the integration tests have been made to not write to /usr
but some genuinely need to do so.

Because mkosi creates images with a read-only /usr
it is not normally writeable.

By mounting an overlayfs with /usr as the lower dir
and upper and working dirs in /var tests may write to /usr.
test/units/testsuite-15.sh
test/units/testsuite-26.sh
test/units/testsuite-60.sh
test/units/testsuite-73.sh
test/units/util.sh