-
Notifications
You must be signed in to change notification settings - Fork 3k
Cellular: Added power and sim greentea and unit tests. #7146
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
Cellular: Added power and sim greentea and unit tests. #7146
Conversation
@0xc0170 could you please trigger the tests? |
/morph build |
* | ||
* @remark See 3GPP TS 27.007 CFUN for more details | ||
* | ||
* @return zero on success | ||
*/ | ||
virtual nsapi_error_t set_power_level(int func_level) = 0; | ||
virtual nsapi_error_t set_power_level(int func_level, int do_reset = 1) = 0; |
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.
Marking for 5.10 due to the API addition.
Otherwise, LGTM.
Build : SUCCESSBuild number : 2327 Triggering tests/morph test |
MBED_ASSERT(err == NSAPI_ERROR_OK); | ||
wait_for_power(pwr); | ||
|
||
/* |
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.
Why are we leaving this dead code in? What is the purpose
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.
test code made but wasn't able to test it. We will test and uncomment it once we got bg96 to raas & ci.
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 would rather leave it out rather commented-out code on master (stash it or push it to your local branch). Once tested, will be 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.
commented test removed.
Exporter Build : FAILUREBuild number : 1950 |
7e21829
to
9056036
Compare
/morph build |
Test : SUCCESSBuild number : 2108 |
Test result is from the previous changeset, we will need to restart CI again |
/morph build |
Build : SUCCESSBuild number : 2343 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 1967 |
Test : SUCCESSBuild number : 2128 |
Crud. @jarvte Looks like this'll need a rebase and anther pass through CI... |
9056036
to
7e1b048
Compare
/morph build |
Build : SUCCESSBuild number : 2359 Triggering tests/morph test |
Exporter Build : FAILUREBuild number : 1984 |
Test : SUCCESSBuild number : 2147 |
@cmonr ci-morph-exporter failure not related to this pr |
/morph export-build |
Exporter Build : FAILUREBuild number : 1991 |
/morph export-build |
Exporter Build : SUCCESSBuild number : 1996 |
@ARMmbed/mbed-os-wan Please rereview (can't see here any approvals) |
@cmonr please approve and merge |
@jarvte I was looking at this again, and was wondering something.
I marked this for 5.10 because of the code addition in Could you explain how |
@cmonr this is actually a bug, I read spec again and noticed that default value should be ''0'. If you don't give that do_reset if same as not doing the reset for the modem before applying the new functionality. I will fix default value to '0' in next PR for network tests. |
PR with the fix: #7269 |
@jarvte Wonderful! Since that was my only holdover for making this target a feature release, I'll mark it back for the next patch release. |
Description
This does not affect to current behaviour as default value is 1 and then it behaves in the old way.
Internal ref to defect: IOTCELL-903-916
@mirelachirica @AnttiKauppila please review.
Pull request type