'sys.stderr.write' does not add them.

Signed-off-by: Ilya Maximets <[email protected]>
---
 tests/test-ovsdb.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/test-ovsdb.py b/tests/test-ovsdb.py
index 14491a2e9..73fcba63a 100644
--- a/tests/test-ovsdb.py
+++ b/tests/test-ovsdb.py
@@ -679,11 +679,11 @@ def do_idl(schema_file, remote, *commands):
             request = ovs.jsonrpc.Message.create_request("transact", json)
             error, reply = rpc.transact_block(request)
             if error:
-                sys.stderr.write("jsonrpc transaction failed: %s"
+                sys.stderr.write("jsonrpc transaction failed: %s\n"
                                  % os.strerror(error))
                 sys.exit(1)
             elif reply.error is not None:
-                sys.stderr.write("jsonrpc transaction failed: %s"
+                sys.stderr.write("jsonrpc transaction failed: %s\n"
                                  % reply.error)
                 sys.exit(1)
 
@@ -732,11 +732,11 @@ def do_idl_passive(schema_file, remote, *commands):
         request = ovs.jsonrpc.Message.create_request("transact", json)
         error, reply = rpc.transact_block(request)
         if error:
-            sys.stderr.write("jsonrpc transaction failed: %s"
+            sys.stderr.write("jsonrpc transaction failed: %s\n"
                              % os.strerror(error))
             sys.exit(1)
         elif reply.error is not None:
-            sys.stderr.write("jsonrpc transaction failed: %s"
+            sys.stderr.write("jsonrpc transaction failed: %s\n"
                              % reply.error)
             sys.exit(1)
 
-- 
2.17.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to