qemu/tests/qemu-iotests
Sascha Silbe 3f647b510f qemu-iotests: 148: properly skip test if quorum support is missing
qemu-iotests test case 148 already had some code for skipping the test
if quorum support is missing, but it didn't work in all
cases. TestQuorumEvents.setUp() gets run before the actual test class
(which contains the skipping code) and tries to start qemu with a drive
using the quorum driver. For some reason this works fine when using
qcow2, but fails for raw.

As the entire test case requires quorum, just check for availability
before even starting the test suite. Introduce a verify_quorum()
function in iotests.py for this purpose so future test cases can make
use of it.

Signed-off-by: Sascha Silbe <silbe@linux.vnet.ibm.com>
Reviewed-by: Bo Tu <tubo@linux.vnet.ibm.com>
Message-id: 1459848109-29756-5-git-send-email-silbe@linux.vnet.ibm.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
2016-04-12 18:07:39 +02:00
..
001
002
003
004
005
007
008
009
010
011
012
013
014
015
017
021
022
023
025
026
027
028
2016-01-20 13:36:23 +01:00
029
030
2016-03-28 13:56:44 -04:00
2016-03-28 13:56:44 -04:00
031
032
033
035
036
2016-01-20 13:36:23 +01:00
039
040
042
043
044
045
046
047
048
049
051
2016-03-30 12:16:03 +02:00
2016-03-30 12:16:03 +02:00
052
053
054
055
056
057
058
060
061
062
063
064
065
066
067
2016-02-22 16:54:14 +01:00
2016-02-22 16:54:14 +01:00
068
2015-12-18 14:36:17 +01:00
069
070
071
072
073
074
075
076
077
078
079
080
081
082
084
085
086
2016-01-07 21:30:16 +01:00
088
089
090
091
092
095
2016-01-07 21:30:17 +01:00
2016-01-07 21:30:17 +01:00
096
097
098
099
100
101
102
103
104
105
107
108
109
2016-02-29 14:54:31 -05:00
110
2015-12-18 14:36:17 +01:00
111
113
114
115
116
118
2016-02-02 17:49:42 +01:00
119
120
121
122
123
128
129
130
131
132
134
135
136
137
138
139
142
2016-03-30 12:16:03 +02:00
2016-03-30 12:16:03 +02:00
145
2016-02-22 09:49:46 +01:00
2016-02-22 09:49:46 +01:00
2016-02-16 14:29:27 +00:00

=== This is the QEMU I/O test suite ===

* Intro

This package contains a simple test suite for the I/O layer of qemu.
It does not require a guest, but only the qemu, qemu-img and qemu-io
binaries.  This does limit it to exercise the low-level I/O path only
but no actual block drivers like ide, scsi or virtio.

* Usage

Just run ./check to run all tests for the raw image format, or ./check
-qcow2 to test the qcow2 image format.  The output of ./check -h explains
additional options to test further image formats or I/O methods.

* Feedback and patches

Please send improvements to the test suite, general feedback or just
reports of failing tests cases to qemu-devel@savannah.nongnu.org.