1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pythonlib/riotctrl_shell: use ping instead of ping6

This commit is contained in:
Benjamin Valentin 2021-11-29 17:29:59 +01:00
parent a23fa5253f
commit c4ad82f5e6
2 changed files with 2 additions and 2 deletions

View File

@ -532,7 +532,7 @@ class GNRCICMPv6Echo(ShellInteraction):
async_=False,
):
cmd = (
"ping6 {hostname} -c {count} -i {interval} "
"ping {hostname} -c {count} -i {interval} "
"-s {packet_size} -W {timeout}".format(
hostname=hostname,
count=count,

View File

@ -16,7 +16,7 @@ def test_ping6():
si = riotctrl_shell.gnrc.GNRCICMPv6Echo(rc)
res = si.ping6("::1", interval=100)
# mock just returns last input
assert "ping6" in res
assert "ping" in res
assert " ::1 " in res
assert " -i 100 " in res