Skip to content
Snippets Groups Projects
Commit 930a7bfc authored by Simon McVittie's avatar Simon McVittie
Browse files

tests: Assert that locale, localedef are symlinks in scout sysroot


The host system is assumed to be at least as new as scout (otherwise
nothing will work, least of all pressure-vessel-wrap), so we can assume
that the host glibc will be used.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent fcec146a
No related branches found
No related tags found
No related merge requests found
......@@ -647,6 +647,16 @@ class TestContainers(BaseTest):
# Might not be /sbin/ldconfig, for example on non-Debian hosts
self.assertRegex(target, r'^/run/host/')
if os.path.isfile('/usr/bin/locale'):
link = os.path.join(tree, 'usr', 'bin', 'locale')
target = os.readlink(link)
self.assertEqual(target, '/run/host/usr/bin/locale')
if os.path.isfile('/usr/bin/localedef'):
link = os.path.join(tree, 'usr', 'bin', 'localedef')
target = os.readlink(link)
self.assertEqual(target, '/run/host/usr/bin/localedef')
def test_scout_sysroot(self) -> None:
scout = os.path.join(self.containers_dir, 'scout_sysroot')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment