[dts] [PATCH V1] tests/virtio_ipsec_cryptodev_func: restore file open mode
Yu Jiang
yux.jiang at intel.com
Wed Apr 21 09:04:30 CEST 2021
restore file open mode to writable
Fixes: ab8397d ("cryptodev: replace -w to -a")
Signed-off-by: Yu Jiang <yux.jiang at 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
More information about the dts
mailing list