diff --git a/p4app/test.py b/p4app/test.py index 0e59e77..02ee6ec 100644 --- a/p4app/test.py +++ b/p4app/test.py @@ -23,7 +23,7 @@ class TestStuff(object): translated_ipv4 = nat64_prefix[int(dst_ipv4)] log.info("Trying to reach {} ({}) from {}".format(dst_ipv4, translated_ipv4, host)) - cmd = "mx h1 ping -c1 {}".format(translated_ipv4).split(" ") + cmd = "mx h1 ping6 -c1 {}".format(translated_ipv4).split(" ") subprocess.call(cmd) @@ -34,7 +34,8 @@ class TestStuff(object): methods = [m for m in methods_dir if re.match("^test", m)] methods = [re.sub("^test_(.*)", r"\1", m) for m in methods] - parser.add_argument('--method', help="which method?", choices=methods, required=True) + parser.add_argument('-m', + '--method', help="which method?", choices=methods, required=True) parser.add_argument('--debug', help='Enable debug logging', action='store_true') parser.add_argument('--verbose', help='Enable verbose logging', action='store_true') parser.add_argument('--multicast-to-controller', help='Send debug multicast to controller', action='store_true')