From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 5E9E11B168 for ; Wed, 3 Jan 2018 10:07:21 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Jan 2018 01:07:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,500,1508828400"; d="scan'208,217";a="6877274" Received: from dpdk-test32.sh.intel.com (HELO [10.67.119.109]) ([10.67.119.109]) by fmsmga007.fm.intel.com with ESMTP; 03 Jan 2018 01:07:20 -0800 Message-ID: <5A4D0BCF.7040206@intel.com> Date: Thu, 04 Jan 2018 00:58:55 +0800 From: "Liu, Yong" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "xu,gang" , dts@dpdk.org References: <1514961588-2129-1-git-send-email-gangx.xu@intel.com> <1514961588-2129-2-git-send-email-gangx.xu@intel.com> In-Reply-To: <1514961588-2129-2-git-send-email-gangx.xu@intel.com> Content-Type: multipart/alternative; boundary="------------060306020303070701080700" Subject: Re: [dts] [PATCH V2] add test suite inline_ipsec X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Jan 2018 09:07:22 -0000 This is a multi-part message in MIME format. --------------060306020303070701080700 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Gang, Please replace hard coded folder to self.dut.base_dir which can be changed by input parameter. BTW, test plan has been merged. Please only send out test suite in the next time. Thanks, Marvin On 01/03/2018 02:39 PM, xu,gang wrote: > + def set_cfg(self, filename, cfg): > + """ > + open file and write cfg, scp it to dut/root/dpdk/ > + """ > + for i in cfg: > + with open(filename, 'w') as f: > + f.write(cfg) > + self.dut.session.copy_file_to(filename, '/root/dpdk/') --------------060306020303070701080700 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 8bit Gang,
Please replace hard coded folder to  self.dut.base_dir which can be changed by input parameter.
BTW, test plan has been merged. Please only send out test suite in the next time.

Thanks,
Marvin

On 01/03/2018 02:39 PM, xu,gang wrote:
+    def set_cfg(self, filename, cfg):
+        """
+        open file and write cfg, scp it to dut /root/dpdk/  
+        """
+        for i in cfg:
+            with open(filename, 'w') as f:
+                f.write(cfg)
+        self.dut.session.copy_file_to(filename, '/root/dpdk/')

--------------060306020303070701080700--