We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1a7f56 commit 1f4b774Copy full SHA for 1f4b774
tests/qemu-iotests/iotests.py
@@ -217,7 +217,13 @@ def __init__(self, *args):
217
stdout=subprocess.PIPE,
218
stderr=subprocess.STDOUT,
219
universal_newlines=True)
220
- assert self._p.stdout.read(9) == 'qemu-io> '
+ out = self._p.stdout.read(9)
221
+ if out != 'qemu-io> ':
222
+ # Most probably qemu-io just failed to start.
223
+ # Let's collect the whole output and exit.
224
+ out += self._p.stdout.read()
225
+ self._p.wait(timeout=1)
226
+ raise ValueError(out)
227
228
def close(self):
229
self._p.communicate('q\n')
0 commit comments