From 52649aea70ec02533d0e48bd5551499e3a52b469 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 6 Sep 2016 15:55:22 +0200 Subject: [PATCH] bdd: Improve output when line was already found --- tests/end2end/fixtures/testprocess.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/end2end/fixtures/testprocess.py b/tests/end2end/fixtures/testprocess.py index 0e8f5d639..73e9348e9 100644 --- a/tests/end2end/fixtures/testprocess.py +++ b/tests/end2end/fixtures/testprocess.py @@ -348,9 +348,8 @@ class Process(QObject): # same thing the next time we use wait_for and it matches # this line again. line.waited_for = True - if 'message' in kwargs: - self._log("\n----> Already found {!r} in the log".format( - kwargs['message'])) + self._log("\n----> Already found {!r} in the log: {}".format( + kwargs.get('message', 'line'), line)) return line return None