summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-10-05 00:14:20 +0100
committerSteve Sakoman <steve@sakoman.com>2023-10-25 04:51:01 -1000
commit7c96ef81f8df657091b753f8079dbc389b79eaec (patch)
tree1a5b19f87c04f5d0567da5cf932477827c0d37a2
parenta3be76f47c551ba45a2aa68af9db278a31104a62 (diff)
downloadpoky-7c96ef81f8df657091b753f8079dbc389b79eaec.tar.gz
oeqa/concurrencytest: Remove invalid buffering option
Fix warnings from oe-selftest -j: /usr/lib/python3.10/os.py:1030: RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode, the default buffer size will be used return io.open(fd, mode, buffering, encoding, *args, **kwargs) Remove the option since it clearly doesn't do much. (From OE-Core rev: bd487f92103acd7e97d7815c8c6e233932f6f1f1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 6b872ee72942951fd464c4c6cb9eadcb9b4749c1) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/lib/oeqa/core/utils/concurrencytest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/core/utils/concurrencytest.py b/meta/lib/oeqa/core/utils/concurrencytest.py
index 4f77589b00..3ac5a6dd7c 100644
--- a/meta/lib/oeqa/core/utils/concurrencytest.py
+++ b/meta/lib/oeqa/core/utils/concurrencytest.py
@@ -263,7 +263,7 @@ def fork_for_tests(concurrency_num, suite):
263 ourpid = os.getpid() 263 ourpid = os.getpid()
264 try: 264 try:
265 newbuilddir = None 265 newbuilddir = None
266 stream = os.fdopen(c2pwrite, 'wb', 1) 266 stream = os.fdopen(c2pwrite, 'wb')
267 os.close(c2pread) 267 os.close(c2pread)
268 268
269 (builddir, newbuilddir) = suite.setupfunc("-st-" + str(ourpid), selftestdir, process_suite) 269 (builddir, newbuilddir) = suite.setupfunc("-st-" + str(ourpid), selftestdir, process_suite)
@@ -308,7 +308,7 @@ def fork_for_tests(concurrency_num, suite):
308 os._exit(0) 308 os._exit(0)
309 else: 309 else:
310 os.close(c2pwrite) 310 os.close(c2pwrite)
311 stream = os.fdopen(c2pread, 'rb', 1) 311 stream = os.fdopen(c2pread, 'rb')
312 # Collect stdout/stderr into an io buffer 312 # Collect stdout/stderr into an io buffer
313 output = io.BytesIO() 313 output = io.BytesIO()
314 testserver = ProtocolTestCase(stream, passthrough=output) 314 testserver = ProtocolTestCase(stream, passthrough=output)