Reset HID before running the keyboard test (BugFix)#1322
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1322 +/- ##
=======================================
Coverage 44.18% 44.18%
=======================================
Files 359 359
Lines 38813 38814 +1
Branches 6581 6581
=======================================
+ Hits 17148 17149 +1
Misses 21003 21003
Partials 662 662
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
I did try with nvidia-jetson-agx-orin-c31646 (classic 22.04 server image), I am getting a different result... |
Thanks for reporting this, it's caused by a version mismatch and it'll be fixed on the other side of this API. This PR still makes sense since it avoid problems, especially with modifiers kept pressed. |
* Change: reset HID before running zapper keyboard test * Fix: tests
Description
Zapper HID Keyboard test might be affected by the current state of the keyboard, especially if a modifier is for some reason kept pressed. This PR runs first the "reset hid" API so that we start from a clean environment.
Resolved issues
Resolves ZAP-858
Documentation
N/A
Tests
Tested running from source on https://certification.canonical.com/hardware/202203-30003 with