mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-11-02 10:52:22 +00:00
fix(oci): keep installing when an image mountpoint is not a plain directory
- Log and continue when the helper refuses a mountpoint, as the seed capture does - Nothing is moved in that case, so the image installs as before
This commit is contained in:
@@ -119,5 +119,15 @@ class ImageMountpointTests(unittest.TestCase):
|
||||
self.assertEqual(self.normalize(), [])
|
||||
|
||||
|
||||
def test_installers_keep_installing_when_a_mountpoint_is_refused(self):
|
||||
# A refused path changes nothing, so the image installs as it did before.
|
||||
remote = MODULE.parent
|
||||
script = (remote / 'install_oci.sh').read_text()
|
||||
call = script[script.index('oci_image_mountpoints.py'):]
|
||||
self.assertTrue(call.split('\n', 2)[1].strip().startswith('|| oci_log'))
|
||||
stack = (remote / 'install_generic_stack.py').read_text()
|
||||
block = stack[stack.index('normalize(root, [mount'):][:400]
|
||||
self.assertIn('except (OSError, ValueError)', block)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
||||
Reference in New Issue
Block a user