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

Checkbox 417/wireless detect #507

Merged
merged 11 commits into from
Jun 5, 2023
Merged

Checkbox 417/wireless detect #507

merged 11 commits into from
Jun 5, 2023

Conversation

diohe0311
Copy link
Contributor

@diohe0311 diohe0311 commented May 29, 2023

Description

The issue is occurs in IoT device while running wireless detect test without WiFi connection.
If there is no WiFi connection, the device didn't turns OFF network module but turns into dormant state, which causing issue.

I add a exception handling to avoid OSError interrupt testing.

(Additionally, there is a indirectly import problem in network_device_info.py ocurrs during testing, this is because the imported module is not the standard module in tox venv.
After discuss with Pierre, Maciej and Massimiliano, since the module is not been used in unit test, the simplest solution is move importing line to where the function is actually needed.)

Resolved issues

https://warthogs.atlassian.net/jira/software/c/projects/CHECKBOX/boards/590?modal=detail&selectedIssue=CHECKBOX-417

Documentation

Tests

$./manage.py test -u (in checkbox/providers/base)
Tested in 10.102.160.211 (Ubuntu 20.04.6) and my laptop.

@diohe0311 diohe0311 marked this pull request as draft May 30, 2023 05:11
diohe0311 and others added 3 commits May 30, 2023 17:01
@diohe0311 diohe0311 marked this pull request as ready for review May 31, 2023 02:44
@pieqq pieqq requested a review from kissiel June 1, 2023 03:06
Copy link
Collaborator

@pieqq pieqq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad to see this is finally working! Good job!

I'll just leave a few comments below. I think we need @kissiel and/or @Hook25 feedback on that one.

providers/base/bin/network_device_info.py Outdated Show resolved Hide resolved
providers/base/bin/network_device_info.py Outdated Show resolved Hide resolved
providers/base/tests/test_network_device_info.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@pieqq pieqq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are getting there! A few last comments and I think this should be good to land.

Thanks a lot for your patience and perseverance, @diohe0311 !

providers/base/bin/network_device_info.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@pieqq pieqq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks a lot for your time working on this, Dio!

@pieqq pieqq merged commit 15fc0b7 into main Jun 5, 2023
@pieqq pieqq deleted the CHECKBOX-417/wireless-detect branch June 5, 2023 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants