From 069e1dee1a13e22e42683981b84135131c060143 Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Thu, 23 Feb 2023 14:51:54 +0100 Subject: [PATCH] test.expect(): Use Connection.Flags.ReadOnlyPrintable Signed-off-by: Jan Lindemann --- src/python/devtest/os/test/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/devtest/os/test/test.py b/src/python/devtest/os/test/test.py index 219bb7c..4108ad3 100644 --- a/src/python/devtest/os/test/test.py +++ b/src/python/devtest/os/test/test.py @@ -25,7 +25,7 @@ async def expect(conn, cmd=None, regex=None, subject=None, act_timeout=0.1, tota if subject == None: subject = ">" + regex + "<" while True: - flags = Connection.Flags.ReadStripNewline|Connection.Flags.ReadDecodeToString + flags = Connection.Flags.ReadStripNewline|Connection.Flags.ReadDecodeToString|Connection.Flags.ReadOnlyPrintable timeout = act_timeout now = time.time() if deadline is not None: