From 87d4154753b9f0034b6c2ff49537e7aad8e610b8 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 20 Mar 2019 00:04:21 +0100 Subject: [PATCH] Rename test && fix return --- doc/plan.org | 1 + p4app/test.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/plan.org b/doc/plan.org index 992d585..a308f18 100644 --- a/doc/plan.org +++ b/doc/plan.org @@ -114,6 +114,7 @@ | 2019-03-21 | Meet Laurent #3 | | | | - My dog ate my homework | | | | - Router solicitation for finding router on startup! | | +| | - test.py for TDD | | | | | | | | | | | 2019-03-30 | NAT64 1:1 table ICMP, ICMPv6 working | | diff --git a/p4app/test.py b/p4app/test.py index 016047c..98918a6 100644 --- a/p4app/test.py +++ b/p4app/test.py @@ -16,12 +16,12 @@ class TestStuff(object): def __init__(self): pass - def test_icmp6_switch(self): + def test_ping6_switch(self): host = "h1" dst_ipv6 = ipaddress.ip_address("2001:db8::42") log.info("Trying to reach {} from {}".format(dst_ipv6, host)) - cmd = "mx h1 ping6 -c1 {}".format(dst_ipv6) + cmd = "mx h1 ping6 -c1 {}".format(dst_ipv6).split(" ") return cmd