-
Notifications
You must be signed in to change notification settings - Fork 51
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
[ce-oem] Add wifi AP mode test (New) #1606
base: main
Are you sure you want to change the base?
Conversation
6810613
to
a23c84e
Compare
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/wifi_test.py
Outdated
Show resolved
Hide resolved
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/wifi_test.py
Outdated
Show resolved
Hide resolved
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/wifi_test.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left several inline comments, please take a look.
cb0d340
to
a41429a
Compare
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/wifi_test.py
Outdated
Show resolved
Hide resolved
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/wifi_test.py
Outdated
Show resolved
Hide resolved
contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/wifi_test.py
Outdated
Show resolved
Hide resolved
3176bba
to
5d90c5e
Compare
Co-authored-by: stanley31huang <[email protected]>
Since this will make the function outside WiFiManager can call it without init the WiFiManager
… command to connect dut's ap
Co-authored-by: stanley31huang <[email protected]>
Co-authored-by: stanley31huang <[email protected]>
Make subprocess check the status instead of capture the exception
Since we add debug log about the running command. Therefore, we don't need --set-ap-only anymore. Since it originally design for debug purpose
…nd usage more clear
5d90c5e
to
f29442a
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1606 +/- ##
=======================================
Coverage 48.85% 48.85%
=======================================
Files 370 370
Lines 40234 40234
Branches 6794 6794
=======================================
Hits 19657 19657
Misses 19857 19857
Partials 720 720 ☔ View full report in Codecov by Sentry. |
This default set will be get the first available wireless interface
The wifi ap mode test are intend to test if DUT is able to create wifi AP and allow a HOST to connect with. And also the HOST will perform ping test to make sure the connection works fine.
Description
This test require a HOST machine to connect to DUT's AP. And support only if wireless interface managed by Network-Manager for both DUT and HOST, since networkd does not support handle wireless interface working in AP mode[1].
Also, even the Network-Manager is able to handle wireless interface working in AP mode but it support only on band a and bg[2].
[ref 1] https://netplan.readthedocs.io/en/stable/netplan-yaml/#properties-for-device-type-wifis
[ref 2] https://networkmanager.dev/docs/api/latest/settings-802-11-wireless.html
Resolved issues
Documentation
Tests
Passed result:
Failed result: