Print output earlier in test_version

This commit is contained in:
Florian Bruhin 2017-09-10 13:36:08 +02:00
parent 9a8088586f
commit 9e10f891ff

View File

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