commit 370663947a0c88785ffa108e29ca4ecc271c3738
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Wed Sep 4 13:39:57 2013 +0200
TestIcmp6Ping: fix regex
The reges for the Icmp6Ping test was broken up into two lines and
contained an error causing it to never properly match. This commit fixes
that.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
test_modules/TestIcmp6Ping.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/test_modules/TestIcmp6Ping.py b/test_modules/TestIcmp6Ping.py
index 3d66130..83550c5 100644
--- a/test_modules/TestIcmp6Ping.py
+++ b/test_modules/TestIcmp6Ping.py
@@ -38,8 +38,7 @@ class TestIcmp6Ping(TestGeneric):
data_stdout = exec_cmd(cmd, die_on_err=False)[0]
stat_pttr1 = r'(\d+) packets transmitted, (\d+) received'
- stat_pttr2 = r' rtt min/avg/max/mdev = \
- (\d+\.\d+)/(\d+\.\d+)/(\d+\.\d+)/(\d+\.\d+) ms'
+ stat_pttr2 = r'rtt min/avg/max/mdev =
(\d+\.\d+)/(\d+\.\d+)/(\d+\.\d+)/(\d+\.\d+) ms'
match = re.search(stat_pttr1, data_stdout)
if not match:
Show replies by date