Skip to content

Add cellular information tests #7286

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

Merged
merged 3 commits into from
Jun 27, 2018

Conversation

jarvte
Copy link
Contributor

@jarvte jarvte commented Jun 21, 2018

Description

  • added more unit tests for CellularInformation class
  • added greentea tests for CellularInformation class

Internal ref to defect: IOTCELL-945-947

@AriParkkila @AnttiKauppila please review

Pull request type

[X] Fix
[ ] Refactor
[ ] New target
[ ] Feature
[ ] Breaking change

@0xc0170 0xc0170 requested a review from a team June 21, 2018 07:49
AriParkkila
AriParkkila previously approved these changes Jun 21, 2018
{
CellularInformation *info = cellular.get_device()->open_information(&cellular_serial);

char buf[100];

Choose a reason for hiding this comment

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

Probably not good to take this from stack?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to heap


nsapi_error_t AT_CellularInformation::get_serial_number(char *buf, size_t buf_size, SerialNumberType type)
{
return 0;

Choose a reason for hiding this comment

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

NSAPI_ERROR_OK makes more sense?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

AnttiKauppila
AnttiKauppila previously approved these changes Jun 25, 2018
@jarvte jarvte dismissed stale reviews from AnttiKauppila and AriParkkila via c6e0c0c June 25, 2018 07:14
AriParkkila
AriParkkila previously approved these changes Jun 25, 2018
@0xc0170
Copy link
Contributor

0xc0170 commented Jun 25, 2018

/morph build

0xc0170
0xc0170 previously approved these changes Jun 25, 2018
@0xc0170
Copy link
Contributor

0xc0170 commented Jun 25, 2018

/morph build

AnttiKauppila
AnttiKauppila previously approved these changes Jun 25, 2018
@mbed-ci
Copy link

mbed-ci commented Jun 25, 2018

Build : ABORTED

Build number : 2440
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/7286/

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 25, 2018

Aborted one job (browser failed to render earlier CI run for me thus triggered 2x)

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 25, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Jun 25, 2018

Build : SUCCESS

Build number : 2443
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/7286/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Jun 25, 2018

@cmonr
Copy link
Contributor

cmonr commented Jun 25, 2018

@jarvte A rebase is needed. As soon as it's ready, we'll restart CI.

@mbed-ci
Copy link

mbed-ci commented Jun 25, 2018

@jarvte jarvte dismissed stale reviews from AnttiKauppila, 0xc0170, and AriParkkila via f64c84b June 26, 2018 06:06
@jarvte jarvte force-pushed the add_cellular_information_tests branch from c6e0c0c to f64c84b Compare June 26, 2018 06:06
@jarvte
Copy link
Contributor Author

jarvte commented Jun 26, 2018

@cmonr rebase done.

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 26, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Jun 26, 2018

Build : SUCCESS

Build number : 2445
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/7286/

Triggering tests

/morph test
/morph uvisor-test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Jun 26, 2018

@mbed-ci
Copy link

mbed-ci commented Jun 26, 2018

@cmonr
Copy link
Contributor

cmonr commented Jun 27, 2018

Hi @jarvte. We recently found an issue with the way Astyle in Travis CI was being setup such that it was always failing PRs. The PR will need to be rebased to get the fix which is now in master (#7338).

Once this PR is rebased, we'll prioritize getting it back into CI as soon as possible.

@cmonr
Copy link
Contributor

cmonr commented Jun 27, 2018

Ooor not...

sigh

At least we can merge this in.

@cmonr cmonr merged commit 8fab40a into ARMmbed:master Jun 27, 2018
@0xc0170 0xc0170 removed the needs: CI label Jun 27, 2018
@jarvte jarvte deleted the add_cellular_information_tests branch June 27, 2018 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants