[V1] tests/virtio_ipsec_cryptodev_func: restore file open mode

Message ID 1618988670-11519-1-git-send-email-yux.jiang@intel.com (mailing list archive)
State Accepted
Headers
Series [V1] tests/virtio_ipsec_cryptodev_func: restore file open mode |

Commit Message

Yu Jiang April 21, 2021, 7:04 a.m. UTC
  restore file open mode to writable
Fixes: ab8397d ("cryptodev: replace -w to -a")

Signed-off-by: Yu Jiang <yux.jiang@intel.com>
---
 tests/TestSuite_virtio_ipsec_cryptodev_func.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Yu Jiang April 22, 2021, 5:54 a.m. UTC | #1
Tested-by: Yu Jiang <yux.jiang@intel.com>

Best regards,
Jiang, Yu

-----Original Message-----
From: Jiang, YuX <yux.jiang@intel.com> 
Sent: Wednesday, April 21, 2021 3:05 PM
To: dts@dpdk.org
Cc: Jiang, YuX <yux.jiang@intel.com>
Subject: [dts][PATCH V1] tests/virtio_ipsec_cryptodev_func: restore file open mode
  
Tu, Lijuan May 7, 2021, 7:15 a.m. UTC | #2
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Jiang, YuX
> Sent: 2021年4月22日 13:54
> To: dts@dpdk.org
> Subject: Re: [dts] [PATCH V1] tests/virtio_ipsec_cryptodev_func: restore file
> open mode
> 
> Tested-by: Yu Jiang <yux.jiang@intel.com>
> 
> Best regards,
> Jiang, Yu
> 
> -----Original Message-----
> From: Jiang, YuX <yux.jiang@intel.com>
> Sent: Wednesday, April 21, 2021 3:05 PM
> To: dts@dpdk.org
> Cc: Jiang, YuX <yux.jiang@intel.com>
> Subject: [dts][PATCH V1] tests/virtio_ipsec_cryptodev_func: restore file open
> mode

Applied
  

Patch

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)