Merge ~stanley31/plainbox-provider-checkbox:wwan_fixed into plainbox-provider-checkbox:master
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jonathan Cave | ||||
Approved revision: | 410a7e53749b41d649e57495c9f3ed5032c9149f | ||||
Merged at revision: | eac6c51d45898c46a60961e5f5c2d4bca9a9d813 | ||||
Proposed branch: | ~stanley31/plainbox-provider-checkbox:wwan_fixed | ||||
Merge into: | plainbox-provider-checkbox:master | ||||
Diff against target: |
22 lines (+2/-2) 1 file modified
bin/wwan_tests.py (+2/-2) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jonathan Cave (community) | Approve | ||
Checkbox Developers | Pending | ||
Review via email: mp+406132@code.launchpad.net |
Commit message
Fixed lp:1937257
Description of the change
Attached test results and the the provider test logs.
# Test result with SIM card inserted:
Finalizing session that hasn't been submitted anywhere: checkbox-
=======
☑ : Gather device info about WWAN modems
☑ : Collect information about installed software packages
☑ : Hardware Manifest
☑ : Collect information about installed snap packages
☑ : Verify a GSM broadband modem can create a data connection
☑ : Check if a SIM card is present in a slot connected to the modem
# Test result without SIM card inserted:
-------------[ Running job 1 / 2. Estimated time left: 0:00:20 ]---------------
---------[ Verify a GSM broadband modem can create a data connection ]----------
ID: com.canonical.
Category: com.canonical.
... 8< -------
Connection 'GSMCONN' (ef763d84-
Error: Device for nexthop is not up.
Connection 'GSMCONN' (ef763d84-
==== Service units logs ====
-------
Outcome: job failed
--------------[ Running job 2 / 2. Estimated time left: 0:00:10 ]---------------
------[ Check if a SIM card is present in a slot connected to the modem ]-------
ID: com.canonical.
Category: com.canonical.
... 8< -------
INFO:root:SIM Path: /
-------
Outcome: job failed
Finalizing session that hasn't been submitted anywhere: checkbox-
=======
☑ : Gather device info about WWAN modems
☑ : Collect information about installed snap packages
☑ : Collect information about installed software packages
☑ : Hardware Manifest
☑ : Identify if WWAN module is missing
☒ : Verify a GSM broadband modem can create a data connection
☒ : Check if a SIM card is present in a slot connected to the modem
# Provider test logs:
u@u-Latitude-
...
test_flake8_
u@u-Latitude-
WARNING plainbox.
warning: units/monitor/
NOTE: 1 advice was hidden
Run 'manage.py validate --strict --deprecated' for details
The provider seems to be valid
A few requests to make this easier to process:
- the "task_type" mechanism seems a bit strange - it looks to me like you could just `raise SystemExit("<Fail info..>")` at the point the test fails and not do all this handling later on
- addition of logging could be considered an improvement, but not necessary to fix the bug and distracts from understanding the change, i would remove it for now
- please follow the contribution guide and make sure the commit message is the format requested