test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] tests/virtio_ipsec_cryptodev_func: restore file open mode
@ 2021-04-21  7:04 Yu Jiang
  2021-04-22  5:54 ` Jiang, YuX
  0 siblings, 1 reply; 3+ messages in thread
From: Yu Jiang @ 2021-04-21  7:04 UTC (permalink / raw)
  To: dts; +Cc: Yu Jiang

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(-)

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-07  7:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-21  7:04 [dts] [PATCH V1] tests/virtio_ipsec_cryptodev_func: restore file open mode Yu Jiang
2021-04-22  5:54 ` Jiang, YuX
2021-05-07  7:15   ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).