From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7C61DA0548; Wed, 21 Apr 2021 09:04:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 57DAA4195D; Wed, 21 Apr 2021 09:04:55 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id ED02041932 for ; Wed, 21 Apr 2021 09:04:52 +0200 (CEST) IronPort-SDR: 9uKjvnPkjAiYKozp9cXUy0cTctWTN6hiBpSewRUYQFzlT1f7I79R/yuAOH0gsTTO2Rt+8k5ZLC uSmToh8VHwzA== X-IronPort-AV: E=McAfee;i="6200,9189,9960"; a="182781648" X-IronPort-AV: E=Sophos;i="5.82,238,1613462400"; d="scan'208";a="182781648" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2021 00:04:51 -0700 IronPort-SDR: jTpFaKqNxsuiQ/fYsMsVb72s+50KsbGJcHvBLD5BkCJDSjFtO4xN7OqXbPcnXWLaUwMnDLxKeT QfRhkB2JySQg== X-IronPort-AV: E=Sophos;i="5.82,238,1613462400"; d="scan'208";a="384361477" Received: from odcacrnlx2.sh.intel.com ([10.240.182.159]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 21 Apr 2021 00:04:48 -0700 From: Yu Jiang To: dts@dpdk.org Cc: Yu Jiang Date: Wed, 21 Apr 2021 15:04:30 +0800 Message-Id: <1618988670-11519-1-git-send-email-yux.jiang@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [dts] [PATCH V1] tests/virtio_ipsec_cryptodev_func: restore file open mode X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" restore file open mode to writable Fixes: ab8397d ("cryptodev: replace -w to -a") Signed-off-by: Yu Jiang --- tests/TestSuite_virtio_ipsec_cryptodev_func.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TestSuite_virtio_ipsec_cryptodev_func.py b/tests/TestSuite_virtio_ipsec_cryptodev_func.py index 71557d4..ec610dd 100644 --- a/tests/TestSuite_virtio_ipsec_cryptodev_func.py +++ b/tests/TestSuite_virtio_ipsec_cryptodev_func.py @@ -163,7 +163,7 @@ class VirtioCryptodevIpsecTest(TestCase): self.set_cfg(dut, 'ep1.cfg', ep1) def set_cfg(self, dut, filename, cfg): - with open(filename, 'a') as f: + with open(filename, 'w') as f: f.write(cfg) dut.session.copy_file_to(filename, dut.base_dir) -- 2.7.4