File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -255,6 +255,17 @@ comparable library support for invoking and interacting with QEMU programs. If
255
255
you opt for Python, it is strongly recommended to write Python 3 compatible
256
256
code.
257
257
258
+ Both Python and Bash frameworks in iotests provide helpers to manage test
259
+ images. They can be used to create and clean up images under the test
260
+ directory. If no I/O or any protocol specific feature is needed, it is often
261
+ more convenient to use the pseudo block driver, ``null-co:// ``, as the test
262
+ image, which doesn't require image creation or cleaning up. Avoid system-wide
263
+ devices or files whenever possible, such as ``/dev/null `` or ``/dev/zero ``.
264
+ Otherwise, image locking implications have to be considered. For example,
265
+ another application on the host may have locked the file, possibly leading to a
266
+ test failure. If using such devices are explicitly desired, consider adding
267
+ ``locking=off `` option to disable image locking.
268
+
258
269
Docker based tests
259
270
==================
260
271
You can’t perform that action at this time.
0 commit comments