[dts] [PATCH] tests cloud_filter: show filter type in validation process
Marvin Liu
yong.liu at intel.com
Thu Jul 7 07:45:15 CEST 2016
Show validating cloud filter type in the validation process. This
information will help with user to get to known that which filter caused
failure.
Signed-off-by: Marvin Liu <yong.liu at intel.com>
diff --git a/tests/TestSuite_cloud_filter.py b/tests/TestSuite_cloud_filter.py
index 59d0038..7348aea 100644
--- a/tests/TestSuite_cloud_filter.py
+++ b/tests/TestSuite_cloud_filter.py
@@ -308,9 +308,11 @@ class TestCloudFilter(TestCase):
"""
Send packet match cloud filter rule and verify packet received
"""
+ self.logger.info("Verifying vxlan %s filter" % cloud_cfg.cf_rule['type'])
if dpdk:
cloud_cfg.transmit_packet()
out = self.pmdout.get_output()
+ print out
queue = cloud_cfg.cf_rule['queue']
self.verify("queue %d" %
queue in out, "Vxlan not received in queue %d" % queue)
@@ -356,6 +358,8 @@ class TestCloudFilter(TestCase):
print "Kernel VF captured packet not match rule"
raise
+ self.logger.info("Verified vxlan %s filter pass" % cloud_cfg.cf_rule['type'])
+
def test_cloud_filter(self):
"""
Verify dpdk work with linux driver added cloud filter rule
--
1.9.3
More information about the dts
mailing list