[dts] [PATCH V1]quota_watermark: update automation testing script

Yufen Mo yufengx.mo at intel.com
Tue Jul 26 09:36:06 CEST 2016


From: yufengmx <yufengx.mo at intel.com>

set packet src mac with a non-zero value

Signed-off-by: yufengmx <yufengx.mo at intel.com>
---
 tests/TestSuite_quota_watermark.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/TestSuite_quota_watermark.py b/tests/TestSuite_quota_watermark.py
index ba7262d..6811714 100644
--- a/tests/TestSuite_quota_watermark.py
+++ b/tests/TestSuite_quota_watermark.py
@@ -215,7 +215,7 @@ class TestQuotaWatermark(TestCase, IxiaPacketGenerator):
         Creates a simple scapy packet to run the tests with
         """
 
-        self.tester.scapy_append('flow=[Ether()/IP()/("X"*26)]*%d'%pkt_cnt)
+        self.tester.scapy_append('flow=[Ether(src="11:22:33:44:55:66")/IP()/("X"*26)]*%d'%pkt_cnt)
         self.tester.scapy_append('wrpcap("file.pcap", flow)')
         self.tester.scapy_execute()
 
-- 
1.9.3



More information about the dts mailing list