From 9e10f891ffcacd9cef26de1400b0a9792af578da Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Sun, 10 Sep 2017 13:36:08 +0200 Subject: [PATCH] Print output earlier in test_version --- tests/end2end/test_invocations.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/end2end/test_invocations.py b/tests/end2end/test_invocations.py index d1f4d0e23..ff6e110d7 100644 --- a/tests/end2end/test_invocations.py +++ b/tests/end2end/test_invocations.py @@ -176,14 +176,15 @@ def test_version(request): ok = proc.waitForStarted(2000) assert ok ok = proc.waitForFinished(2000) - assert ok - assert proc.exitStatus() == QProcess.NormalExit stdout = bytes(proc.readAllStandardOutput()).decode('utf-8') print(stdout) stderr = bytes(proc.readAllStandardError()).decode('utf-8') print(stderr) + assert ok + assert proc.exitStatus() == QProcess.NormalExit + assert re.search(r'^qutebrowser\s+v\d+(\.\d+)', stdout) is not None