summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2023-07-27 00:22:09 +0800
committerSteve Sakoman <steve@sakoman.com>2023-08-15 06:18:49 -1000
commit9c34365a3d56520117938aba7c05deb4746f0b4d (patch)
tree57929554f444057059229d4821c97edc94746a7a
parent6fa4e40651e8f3c11d036aa58146dedf0ef2a885 (diff)
downloadpoky-9c34365a3d56520117938aba7c05deb4746f0b4d.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: e138b648a56a0146588dc52edd9b44929ed8a73e) 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>
-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)))