[riot-notifications] [RIOT-OS/RIOT] tests/gnrc_ipv6_ext_frag: fetch Interface IDs dynamically [backport 2021.01] (#15858)

Martine Lenders notifications at github.com
Tue Jan 26 16:29:09 CET 2021


# Backport of #15856

<!--
The RIOT community cares a lot about code quality.
Therefore, before describing what your contribution is about, we would like
you to make sure that your modifications are compliant with the RIOT
coding conventions, see https://github.com/RIOT-OS/RIOT/wiki/Coding-conventions.
-->

### Contribution description
Currently the test script for `tests/gnrc_ipv6_ext_frag` assumes a certain order and interface ID for the underlying application which provides one for a mocked transfer and one ethos interface to interact with the host-side scripting. However, ever since eb73515e2cfdf5e42c84dfd53489c0e63dc6f00b got merged (and probably others) got merged, that order and numbering is not true anymore, making the test fail at the moment.

This fixes the test to fetch the interface identifiers based on the Ethernet address of the interface (for ethos and assume the other to be the mock interface) and uses those identifiers throughout the script instead of the constant once.
<!--
Put here the description of your contribution:
- describe which part(s) of RIOT is (are) involved
- if it's a bug fix, describe the bug that it solves and how it is solved
- you can also give more information to reviewers about how to test your changes
-->


### Testing procedure
```sh
BOARD=samr21-xpro make -C tests/gnrc_ipv6_ext_frag/ -j flash test-as-root
```

currently fails on master and in release branches `2020.10-branch` and `2021.01-branch`. With this fix, it will pass.
<!--
Details steps to test your contribution:
- which test/example to compile for which board and is there a 'test' command
- how to know that it was not working/available in master
- the expected success test output
-->


### Issues/PRs references
None
<!--
Examples: Fixes #1234. See also #5678. Depends on PR #9876.

Please use keywords (e.g., fixes, resolve) with the links to the issues you
resolved, this way they will be automatically closed when your pull request
is merged. See https://help.github.com/articles/closing-issues-using-keywords/.
-->

You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/15858

-- Commit Summary --

  * tests/gnrc_ipv6_ext_frag: fetch Interface IDs dynamically

-- File Changes --

    M tests/gnrc_ipv6_ext_frag/tests/01-run.py (84)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/15858.patch
https://github.com/RIOT-OS/RIOT/pull/15858.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15858
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210126/bb414ba7/attachment-0001.htm>


More information about the notifications mailing list