diff options
| author | Max Reitz | 2018-05-09 21:43:02 +0200 |
|---|---|---|
| committer | Max Reitz | 2018-06-11 16:18:45 +0200 |
| commit | e4ca4e981a0a389d6af5dc5d8b5fbdd1a05276a0 (patch) | |
| tree | 2deac093572a2b834566d3fdb9b7f66ba015ccae /scripts/modules | |
| parent | iotests.py: Add qemu_io_silent (diff) | |
| download | qemu-e4ca4e981a0a389d6af5dc5d8b5fbdd1a05276a0.tar.gz qemu-e4ca4e981a0a389d6af5dc5d8b5fbdd1a05276a0.tar.xz qemu-e4ca4e981a0a389d6af5dc5d8b5fbdd1a05276a0.zip | |
iotests: Let 216 make use of qemu-io's exit code
As a showcase of how you can use qemu-io's exit code to determine
success or failure (same for qemu-img), this test is changed to use
qemu_io_silent() instead of qemu_io(), and to assert the exit code
instead of logging the filtered result.
One real advantage of this is that in case of an error, you get a
backtrace that helps you locate the issue in the test file quickly.
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 20180509194302.21585-6-mreitz@redhat.com
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'scripts/modules')
0 files changed, 0 insertions, 0 deletions
