summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-05-11 08:26:37 +0200
committerThomas Haller <thaller@redhat.com>2023-05-12 12:42:54 +0200
commitcb51aee21cb06488a410fe0a380504fd7615d4ad (patch)
tree7fdd701d0d820963107a4507d87e12aed9aab678
parent0888ed93f785efff5b53e55ff27499ae69ec9640 (diff)
downloadNetworkManager-cb51aee21cb06488a410fe0a380504fd7615d4ad.tar.gz
test-client: increase context in pexecpt failure for debugging
When a pexpect check fails, we want to see the full content of the buffer, so we can better see where it went wrong. Increase the context that is printed in the error message.
-rwxr-xr-xsrc/tests/client/test-client.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/client/test-client.py b/src/tests/client/test-client.py
index b6f7cf00a4..e33317b1a9 100755
--- a/src/tests/client/test-client.py
+++ b/src/tests/client/test-client.py
@@ -1009,6 +1009,8 @@ class TestNmClient(unittest.TestCase):
pexp = pexpect.spawn(argv[0], argv[1:], timeout=10, env=env)
+ pexp.str_last_chars = 100000
+
typ = collections.namedtuple("CallPexpect", ["pexp", "valgrind_log"])
return typ(pexp, valgrind_log)