Skip to content

Commit

Permalink
fixup! 04-single-hop-6lowpan-icmp: initial import of automated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jul 16, 2020
1 parent b67f945 commit 0ce8bdf
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions 04-single-hop-6lowpan-icmp/test_spec04.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ def test_task04(riot_ctrl):
assert pktbuf(pinger).is_empty()


@pytest.mark.xfail(reason="Experimental task")
@pytest.mark.local_only
# nodes passed to riot_ctrl fixture
@pytest.mark.parametrize('nodes',
Expand All @@ -141,7 +140,6 @@ def test_task05(riot_ctrl):
assert pktbuf(pinger).is_empty()


@pytest.mark.xfail(reason="Experimental task")
@pytest.mark.local_only
# nodes passed to riot_ctrl fixture
@pytest.mark.parametrize('nodes',
Expand All @@ -166,8 +164,7 @@ def test_task06(riot_ctrl):
assert pktbuf(pinger).is_empty()


@pytest.mark.xfail(reason="Experimental task")
@pytest.mark.iotlab_creds
@pytest.mark.local_only
# nodes passed to riot_ctrl fixture
@pytest.mark.parametrize('nodes',
[pytest.param(['samr21-xpro', 'arduino-zero'])],
Expand All @@ -191,8 +188,7 @@ def test_task07(riot_ctrl):
assert pktbuf(pinger).is_empty()


@pytest.mark.xfail(reason="Experimental task")
@pytest.mark.iotlab_creds
@pytest.mark.local_only
# nodes passed to riot_ctrl fixture
@pytest.mark.parametrize('nodes',
[pytest.param(['samr21-xpro', 'arduino-zero'])],
Expand Down Expand Up @@ -255,7 +251,6 @@ def test_task09(riot_ctrl):
assert pktbuf(node).is_empty()


@pytest.mark.xfail(reason="Experimental task")
@pytest.mark.iotlab_creds
# nodes passed to riot_ctrl fixture
@pytest.mark.parametrize('nodes',
Expand All @@ -275,6 +270,12 @@ def test_task10(riot_ctrl):

res = ping6(pinger, pinged_addr,
count=200, interval=600, packet_size=2048)
if 10 < res['stats']['packet_loss'] <= 100:
pytest.xfail(
"Experimental task. See also "
# pylint: disable=C0301
"https://github.com/RIOT-OS/Release-Specs/issues/142#issuecomment-561677974" # noqa: E501
)
assert res['stats']['packet_loss'] < 10

time.sleep(60)
Expand Down

0 comments on commit 0ce8bdf

Please # to comment.