Closed fernando79513 closed 2 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 47.11%. Comparing base (
21efaa7
) to head (e5da674
). Report is 2 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
Taking a look at https://github.com/canonical/checkbox/issues/1456 I saw that there is an error in the "insertion" condition. Explanation The line:
python Copy code if "USB Mass Storage device detected" or "uas" in line_str: does not work as intended because of the way Python evaluates conditional expressions. Here's what's happening step by step:
Expression Evaluation Order:
Python evaluates "USB Mass Storage device detected" first. Since non-empty strings are considered True in a boolean context, "USB Mass Storage device detected" evaluates to True. Therefore, the entire expression before the or operator is True.
Resolved issues
N/A
Documentation
N/A
Tests
Run Storage tests (22.04 laptop)
checkbox-cli run com.canonical.certification::usb3-cert-manual