summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2023-07-27 00:22:09 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-07-26 20:51:00 +0100
commit02d38e9ce479262d848c4f873ee1e57141eb7eea (patch)
treefab6ebbedf03014376ab9c39aa795d29aa39f37f /meta
parent8bc29e1c87284a8263a88fc89ca1d73d4e3ec070 (diff)
downloadpoky-02d38e9ce479262d848c4f873ee1e57141eb7eea.tar.gz
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: 97a7612e3959bc9c75116a4e696f47cc31aea75d) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/selftest/cases/glibc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/glibc.py b/meta/lib/oeqa/selftest/cases/glibc.py
index c300aef913..924df6c5a6 100644
--- a/meta/lib/oeqa/selftest/cases/glibc.py
+++ b/meta/lib/oeqa/selftest/cases/glibc.py
@@ -45,7 +45,7 @@ class GlibcSelfTestBase(OESelftestTestCase, OEPTestResultTestCase):
45 with contextlib.ExitStack() as s: 45 with contextlib.ExitStack() as s:
46 # use the base work dir, as the nfs mount, since the recipe directory may not exist 46 # use the base work dir, as the nfs mount, since the recipe directory may not exist
47 tmpdir = get_bb_var("BASE_WORKDIR") 47 tmpdir = get_bb_var("BASE_WORKDIR")
48 nfsport, mountport = s.enter_context(unfs_server(tmpdir)) 48 nfsport, mountport = s.enter_context(unfs_server(tmpdir, udp = False))
49 49
50 # build core-image-minimal with required packages 50 # build core-image-minimal with required packages
51 default_installed_packages = [ 51 default_installed_packages = [
@@ -74,7 +74,7 @@ class GlibcSelfTestBase(OESelftestTestCase, OEPTestResultTestCase):
74 # setup nfs mount 74 # setup nfs mount
75 if qemu.run("mkdir -p \"{0}\"".format(tmpdir))[0] != 0: 75 if qemu.run("mkdir -p \"{0}\"".format(tmpdir))[0] != 0:
76 raise Exception("Failed to setup NFS mount directory on target") 76 raise Exception("Failed to setup NFS mount directory on target")
77 mountcmd = "mount -o noac,nfsvers=3,port={0},udp,mountport={1} \"{2}:{3}\" \"{3}\"".format(nfsport, mountport, qemu.server_ip, tmpdir) 77 mountcmd = "mount -o noac,nfsvers=3,port={0},mountport={1} \"{2}:{3}\" \"{3}\"".format(nfsport, mountport, qemu.server_ip, tmpdir)
78 status, output = qemu.run(mountcmd) 78 status, output = qemu.run(mountcmd)
79 if status != 0: 79 if status != 0:
80 raise Exception("Failed to setup NFS mount on target ({})".format(repr(output))) 80 raise Exception("Failed to setup NFS mount on target ({})".format(repr(output)))