qemu/tests/qemu-iotests
Emanuele Giuseppe Esposito ac4e14f5dc qemu-iotests: fix pylint 2.8 consider-using-with error
pylint 2.8 introduces consider-using-with error, suggesting
to use the 'with' block statement when possible.

Modify all subprocess.Popen call to use the 'with' statement,
except the one in __init__ of QemuIoInteractive class, since
it is assigned to a class field and used in other methods.

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
Message-Id: <20210510190449.65948-1-eesposit@redhat.com>
[mreitz: Disable bad-option-value warning in the iotests' pylintrc, so
         that disabling consider-using-with in QemuIoInteractive will
         not produce a warning in pre-2.8 pylint versions]
Signed-off-by: Max Reitz <mreitz@redhat.com>
2021-05-14 16:14:10 +02:00
..
001
002
003
004
005
2021-05-12 17:42:23 +02:00
007
008
009
010
011
012
013
014
015
017
018
019
020
021
022
023
024
025
2021-05-12 17:42:23 +02:00
026
027
028
029
031
032
033
034
035
036
037
038
039
041
042
043
044
045
046
2021-03-29 18:06:14 +02:00
2021-03-29 18:06:14 +02:00
047
048
049
050
051
2021-03-29 14:13:55 +02:00
2021-03-29 14:13:55 +02:00
052
053
054
055
056
057
058
059
060
061
062
063
064
065
066
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
085
086
088
089
090
091
092
094
095
096
097
098
099
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
2021-03-29 14:13:55 +02:00
117
118
119
120
121
122
123
124
2021-03-18 09:22:55 +00:00
125
126
127
2021-03-24 14:25:48 +00:00
128
129
130
131
132
133
134
135
136
137
138
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
165
170
171
172
2021-03-19 15:18:43 +01:00
173
174
175
176
177
178
179
183
185
186
187
188
189
190
191
192
195
196
197
198
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
219
220
221
222
223
224
225
226
227
228
229
232
233
234
237
239
241
242
243
245
2021-04-30 12:27:48 +02:00
247
248
249
250
251
252
253
255
256
2021-03-24 14:25:48 +00:00
261
262
263
265
266
267
268
270
271
272
273
274
277
279
280
281
282
2021-04-30 12:27:48 +02:00
284
286
287
288
289
290
291
292
293
294
297
298
299
301
302
303
304
305
308
309
310
312
313

=== 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@nongnu.org with a CC:
to qemu-block@nongnu.org.