Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nrf fromtree] twister: scripts: Split lines before processing #1972

Merged
merged 3 commits into from
Sep 2, 2024

Conversation

gchwier
Copy link
Contributor

@gchwier gchwier commented Aug 26, 2024

Readline method sometimes receives more lines in buffer. Split them to avoid misinterpreting data in harness module.

(cherry picked from commit 79ef0b6)

@gchwier
Copy link
Contributor Author

gchwier commented Aug 26, 2024

original PR: zephyrproject-rtos/zephyr#77352
This change is required to pass tests from: tests/boot/mcuboot_recovery_retention

@gchwier gchwier requested a review from katgiadla August 26, 2024 09:01
@gchwier gchwier requested a review from fundakol August 27, 2024 08:55
@gchwier
Copy link
Contributor Author

gchwier commented Aug 27, 2024

added also changes to fix CI on Python 3.12:
zephyrproject-rtos/zephyr#76880
zephyrproject-rtos/zephyr#77077

@gchwier gchwier force-pushed the grch-splitlines branch 3 times, most recently from 254b3af to d72b9fa Compare September 2, 2024 06:27
gchwier and others added 3 commits September 2, 2024 10:44
Readline method sometimes receives more lines in buffer.
Split them to avoid misinterpreting data in harness module.

Signed-off-by: Grzegorz Chwierut <[email protected]>
(cherry picked from commit 79ef0b6)
This change is removing some deprecation warnings
which for some reason causing failing tests with
Python 3.12 on CI #76877.

Also, it fixes warnings from pytest like:
PytestCollectionWarning: cannot collect test class 'TestPlan'
because it has a __init__ constructor
(from: scripts/tests/twister/test_testplan.py)

Signed-off-by: Lukasz Fundakowski <[email protected]>
(cherry picked from commit 857adb2)
Fix confusing `TypeError: 'type' object is not subscriptable`
at _get_installed_packages() if twister runs on python version < 3.9

Signed-off-by: Dmitrii Golovanov <[email protected]>
(cherry picked from commit b8bed5b)
@rlubos rlubos merged commit af17fd8 into nrfconnect:main Sep 2, 2024
22 checks passed
@gchwier gchwier deleted the grch-splitlines branch September 2, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants