diff options
| author | Anuj Mittal <anuj.mittal@intel.com> | 2023-07-27 00:22:09 +0800 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2023-08-26 04:24:02 -1000 |
| commit | 70b3a20817f66d688de16102953a6199f94bbf7d (patch) | |
| tree | ee08a7916ac031287f9d9b704e235e689f477b32 | |
| parent | 438d728f3bbb02e60150437668590dad77946053 (diff) | |
| download | poky-70b3a20817f66d688de16102953a6199f94bbf7d.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: 8d0c669d3d04cf5bc645978afb22ba6c3f3d53e6)
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.py | 4 |
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 fdda6f3ecf..f42593a27f 100644 --- a/meta/lib/oeqa/selftest/cases/glibc.py +++ b/meta/lib/oeqa/selftest/cases/glibc.py | |||
| @@ -41,7 +41,7 @@ class GlibcSelfTestBase(OESelftestTestCase, OEPTestResultTestCase): | |||
| 41 | with contextlib.ExitStack() as s: | 41 | with contextlib.ExitStack() as s: |
| 42 | # use the base work dir, as the nfs mount, since the recipe directory may not exist | 42 | # use the base work dir, as the nfs mount, since the recipe directory may not exist |
| 43 | tmpdir = get_bb_var("BASE_WORKDIR") | 43 | tmpdir = get_bb_var("BASE_WORKDIR") |
| 44 | nfsport, mountport = s.enter_context(unfs_server(tmpdir)) | 44 | nfsport, mountport = s.enter_context(unfs_server(tmpdir, udp = False)) |
| 45 | 45 | ||
| 46 | # build core-image-minimal with required packages | 46 | # build core-image-minimal with required packages |
| 47 | default_installed_packages = [ | 47 | default_installed_packages = [ |
| @@ -70,7 +70,7 @@ class GlibcSelfTestBase(OESelftestTestCase, OEPTestResultTestCase): | |||
| 70 | # setup nfs mount | 70 | # setup nfs mount |
| 71 | if qemu.run("mkdir -p \"{0}\"".format(tmpdir))[0] != 0: | 71 | if qemu.run("mkdir -p \"{0}\"".format(tmpdir))[0] != 0: |
| 72 | raise Exception("Failed to setup NFS mount directory on target") | 72 | raise Exception("Failed to setup NFS mount directory on target") |
| 73 | mountcmd = "mount -o noac,nfsvers=3,port={0},udp,mountport={1} \"{2}:{3}\" \"{3}\"".format(nfsport, mountport, qemu.server_ip, tmpdir) | 73 | mountcmd = "mount -o noac,nfsvers=3,port={0},mountport={1} \"{2}:{3}\" \"{3}\"".format(nfsport, mountport, qemu.server_ip, tmpdir) |
| 74 | status, output = qemu.run(mountcmd) | 74 | status, output = qemu.run(mountcmd) |
| 75 | if status != 0: | 75 | if status != 0: |
| 76 | raise Exception("Failed to setup NFS mount on target ({})".format(repr(output))) | 76 | raise Exception("Failed to setup NFS mount on target ({})".format(repr(output))) |
