mirror of
https://git.yoctoproject.org/poky
synced 2026-06-03 13:49:49 +00:00
selftest/cases/glibc.py: switch to using NFS over TCP
This provides a more reliable test execution when running tests that write a large buffer/file and significantly reduces the localedata test failures. (From OE-Core rev: 1f35336edf13496432fb68e7e048a5c137fc3e47) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 97a7612e3959bc9c75116a4e696f47cc31aea75d) Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
a1886b3532
commit
0cbec779f5
@@ -41,7 +41,7 @@ class GlibcSelfTestBase(OESelftestTestCase, OEPTestResultTestCase):
|
|||||||
with contextlib.ExitStack() as s:
|
with contextlib.ExitStack() as s:
|
||||||
# use the base work dir, as the nfs mount, since the recipe directory may not exist
|
# use the base work dir, as the nfs mount, since the recipe directory may not exist
|
||||||
tmpdir = get_bb_var("BASE_WORKDIR")
|
tmpdir = get_bb_var("BASE_WORKDIR")
|
||||||
nfsport, mountport = s.enter_context(unfs_server(tmpdir))
|
nfsport, mountport = s.enter_context(unfs_server(tmpdir, udp = False))
|
||||||
|
|
||||||
# build core-image-minimal with required packages
|
# build core-image-minimal with required packages
|
||||||
default_installed_packages = [
|
default_installed_packages = [
|
||||||
@@ -70,7 +70,7 @@ class GlibcSelfTestBase(OESelftestTestCase, OEPTestResultTestCase):
|
|||||||
# setup nfs mount
|
# setup nfs mount
|
||||||
if qemu.run("mkdir -p \"{0}\"".format(tmpdir))[0] != 0:
|
if qemu.run("mkdir -p \"{0}\"".format(tmpdir))[0] != 0:
|
||||||
raise Exception("Failed to setup NFS mount directory on target")
|
raise Exception("Failed to setup NFS mount directory on target")
|
||||||
mountcmd = "mount -o noac,nfsvers=3,port={0},udp,mountport={1} \"{2}:{3}\" \"{3}\"".format(nfsport, mountport, qemu.server_ip, tmpdir)
|
mountcmd = "mount -o noac,nfsvers=3,port={0},mountport={1} \"{2}:{3}\" \"{3}\"".format(nfsport, mountport, qemu.server_ip, tmpdir)
|
||||||
status, output = qemu.run(mountcmd)
|
status, output = qemu.run(mountcmd)
|
||||||
if status != 0:
|
if status != 0:
|
||||||
raise Exception("Failed to setup NFS mount on target ({})".format(repr(output)))
|
raise Exception("Failed to setup NFS mount on target ({})".format(repr(output)))
|
||||||
|
|||||||
Reference in New Issue
Block a user