diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-05 00:14:20 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-10-05 21:09:10 +0100 |
commit | c9caf79cab490250af9b5af79f1487fb32c36ac8 (patch) | |
tree | 5d95b315c3652f099886c7449d100ed9ca39f0f1 /meta/lib/oeqa/core/utils/concurrencytest.py | |
parent | d7130dbdd54a1ad7d683e5e3c04d2acc36c01e82 (diff) | |
download | poky-c9caf79cab490250af9b5af79f1487fb32c36ac8.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: 6b872ee72942951fd464c4c6cb9eadcb9b4749c1)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/core/utils/concurrencytest.py')
-rw-r--r-- | meta/lib/oeqa/core/utils/concurrencytest.py | 4 |
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 5e20b0e126..d10f8f7f04 100644 --- a/meta/lib/oeqa/core/utils/concurrencytest.py +++ b/meta/lib/oeqa/core/utils/concurrencytest.py | |||
@@ -264,7 +264,7 @@ def fork_for_tests(concurrency_num, suite): | |||
264 | ourpid = os.getpid() | 264 | ourpid = os.getpid() |
265 | try: | 265 | try: |
266 | newbuilddir = None | 266 | newbuilddir = None |
267 | stream = os.fdopen(c2pwrite, 'wb', 1) | 267 | stream = os.fdopen(c2pwrite, 'wb') |
268 | os.close(c2pread) | 268 | os.close(c2pread) |
269 | 269 | ||
270 | (builddir, newbuilddir) = suite.setupfunc("-st-" + str(ourpid), selftestdir, process_suite) | 270 | (builddir, newbuilddir) = suite.setupfunc("-st-" + str(ourpid), selftestdir, process_suite) |
@@ -309,7 +309,7 @@ def fork_for_tests(concurrency_num, suite): | |||
309 | os._exit(0) | 309 | os._exit(0) |
310 | else: | 310 | else: |
311 | os.close(c2pwrite) | 311 | os.close(c2pwrite) |
312 | stream = os.fdopen(c2pread, 'rb', 1) | 312 | stream = os.fdopen(c2pread, 'rb') |
313 | # Collect stdout/stderr into an io buffer | 313 | # Collect stdout/stderr into an io buffer |
314 | output = io.BytesIO() | 314 | output = io.BytesIO() |
315 | testserver = ProtocolTestCase(stream, passthrough=output) | 315 | testserver = ProtocolTestCase(stream, passthrough=output) |