bdd: Improve output when line was already found

This commit is contained in:
Florian Bruhin 2016-09-06 15:55:22 +02:00
parent db7de0d619
commit 52649aea70

View File

@ -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