Test: New changes and test scenarios for
different net conditions triggered by corrupted
packets , burst of packets, delayed packets etc.

Change-Id: Id0aa8adfe0eb9f13458c42618d6810b2845c8ef6
diff --git a/src/test/setup/cord-test.py b/src/test/setup/cord-test.py
index ae10f9d..b182ea1 100755
--- a/src/test/setup/cord-test.py
+++ b/src/test/setup/cord-test.py
@@ -280,6 +280,8 @@
     def run_tests(self):
         '''Run the list of tests'''
         res = 0
+        print('Modifying scapy tool files before running a test: %s' %self.tests)
+        self.modify_scapy_files_for_specific_tests()
         print('Running tests: %s' %self.tests)
         for t in self.tests:
             test = t.split(':')[0]
@@ -301,6 +303,14 @@
 
         return res
 
+    def modify_scapy_files_for_specific_tests(self):
+        name = self.name
+        container_cmd_exec = Container(name = name, image = 'cord-test/nose')
+        tty = False
+        dckr = Client()
+        cmd =  'cp test/src/test/scapy/fields.py /usr/local/lib/python2.7/dist-packages/scapy/fields.py '
+        i = container_cmd_exec.execute(cmd = cmd, tty= tty, stream = True)
+
     @classmethod
     def list_tests(cls, tests):
         print('Listing test cases')