<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Gang,<br>
    Please replace hard coded folder to  self.dut.base_dir which can be
    changed by input parameter.<br>
    BTW, test plan has been merged. Please only send out test suite in
    the next time.<br>
    <br>
    Thanks,<br>
    Marvin<br>
    <br>
    <div class="moz-cite-prefix">On 01/03/2018 02:39 PM, xu,gang wrote:<br>
    </div>
    <blockquote
      cite="mid:1514961588-2129-2-git-send-email-gangx.xu@intel.com"
      type="cite">
      <pre wrap="">+    def set_cfg(self, filename, cfg):
+        """
+        open file and write cfg, scp it to dut <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>root/dpdk<span class="moz-txt-tag">/</span></i>  
+        """
+        for i in cfg:
+            with open(filename, 'w') as f:
+                f.write(cfg)
+        self.dut.session.copy_file_to(filename, '<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>root/dpdk<span class="moz-txt-tag">/</span></i>')</pre>
    </blockquote>
    <br>
  </body>
</html>