-
Notifications
You must be signed in to change notification settings - Fork 3k
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
connectivity-netsocket-tests-tests-network-wifi test suite configuration simplification #15031
Conversation
@jeromecoutant, thank you for your changes. |
cba6303
to
dc5e683
Compare
Please rebase to the latest master to get github workflow update to fix basic checks |
dc5e683
to
a9db615
Compare
Rebased |
@@ -34,8 +34,10 @@ void wifi_connect_disconnect_repeat(void) | |||
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, error); | |||
|
|||
for (int i = 0; i < 10; i++) { | |||
printf("#%u connecting...\n", i); |
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.
Can you add separate commit for adding these debug messages (I would like to understand why are they being added)
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.
@0xc0170 Done
a9db615
to
405e7bd
Compare
This pull request has automatically been marked as stale because it has had no recent activity. @ARMmbed/mbed-os-connectivity, please complete review of the changes to move the PR forward. Thank you for your contributions. |
@@ -47,6 +47,10 @@ nsapi_security get_security() | |||
if (strcmp(MBED_CONF_APP_WIFI_SECURE_PROTOCOL, SEC_WPA3_WPA2) == 0) { | |||
return NSAPI_SECURITY_WPA3_WPA2; | |||
} | |||
#elif defined MBED_CONF_NSAPI_DEFAULT_WIFI_SECURITY | |||
#define concat_(x,y) x##y |
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.
Please use MBED_CONCAT:
#define MBED_CONCAT(a, b) MBED_CONCAT_(a, b) |
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.
OK
Note this was a copy paste from https://github.com/ARMmbed/mbed-os/blob/master/connectivity/netsocket/source/NetworkInterfaceDefaults.cpp#L88-L89 :-)
405e7bd
to
d26dda8
Compare
Pull request has been modified.
This pull request has automatically been marked as stale because it has had no recent activity. @ARMmbed/mbed-os-maintainers, please start CI to get the PR merged. |
Ci started |
Jenkins CI Test : ❌ FAILEDBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
I am checking baremetal build issue |
Use default NSAPI configuration
- add minor print to make debug easier - remove not useful part
d26dda8
to
bce33b0
Compare
Pull request has been modified.
Corrected, let's restart CI Thx |
It would be useful to do not force push during the review (I don't know now how the CI issue was resolved as the fix was amended ?). |
CI started |
I added a MBED_CONF_NSAPI_PRESENT check: |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 2 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Summary of changes
Goal is to simplify connectivity-netsocket-tests-tests-network-wifi test suite configuration.
In the current mbed_app.json file, we need to duplicate wifi network information in order to execute:
Impact of changes
None: all settings can still be configured for this specific test suite as before.
But if they are not set, default NSAPI configuration is used as for other netsocket tests.
Migration actions required
Documentation
Pull request type
Test results
Reviewers