summaryrefslogtreecommitdiffstats
path: root/test/functest/results.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/functest/results.py')
-rw-r--r--test/functest/results.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functest/results.py b/test/functest/results.py
index 37dfc24..66e399e 100644
--- a/test/functest/results.py
+++ b/test/functest/results.py
@@ -10,6 +10,7 @@
import time
import functest.utils.functest_logger as ft_logger
+import functest.utils.functest_utils as ft_utils
logger = ft_logger.Logger("sdnvpn-results").getLogger()
@@ -161,6 +162,16 @@ class Results(object):
self.add_failure(test_case_name)
break
+ def ping_ip_test(self, address):
+ ping = "ping %s -c 3" % address
+ testcase_name = "Ping IP %s" % address
+ exit_code = ft_utils.execute_command(ping)
+
+ if exit_code != 0:
+ self.add_failure(testcase_name)
+ else:
+ self.add_success(testcase_name)
+
def compile_summary(self, SUCCESS_CRITERIA):
success_message = "All the subtests have passed."
failure_message = "One or more subtests have failed."