Skip to content

Conversation

@Bastian-Krause
Copy link
Member

Description
#912 introduced the new kwarg max_size in ConsoleExpectMixin which is passed through to the driver's internal _read() method. The QEMUDriver was not adjusted accordingly, so do that now.

While at it, add tests for the QEMUDriver to prevent such issues in the future.

Checklist

  • Tests for the feature
  • PR has been tested

Fixes #912

f5226ed ("implement 'max_size' in serialdriver read") introduced a new
kwarg in ConsoleExpectMixin which is passed through to the driver's
internal _read() method. The QEMUDriver was not adjusted accordingly, so
do that now.

Fixes: f5226ed ("implement 'max_size' in serialdriver read")
Signed-off-by: Bastian Krause <bst@pengutronix.de>
Signed-off-by: Bastian Krause <bst@pengutronix.de>
@Bastian-Krause Bastian-Krause force-pushed the bst/qemu-read-max-size branch from d00c2f2 to cde4e2a Compare June 21, 2022 15:06
@codecov
Copy link

codecov bot commented Jun 21, 2022

Codecov Report

Merging #940 (cde4e2a) into master (a404bdc) will increase coverage by 0.4%.
The diff coverage is 100.0%.

@@           Coverage Diff            @@
##           master    #940     +/-   ##
========================================
+ Coverage    56.7%   57.2%   +0.4%     
========================================
  Files         150     150             
  Lines       11190   11192      +2     
========================================
+ Hits         6355    6402     +47     
+ Misses       4835    4790     -45     
Impacted Files Coverage Δ
labgrid/driver/qemudriver.py 76.5% <100.0%> (+14.9%) ⬆️
labgrid/util/qmp.py 87.5% <0.0%> (+52.5%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a404bdc...cde4e2a. Read the comment docs.

@Emantor Emantor merged commit 79d1dff into labgrid-project:master Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants