This series adds cache mode option in the iotests framework. Test cases are updated to make use of cache mode and mask supported modes.
v4: Address Stefan's comments: Add _default_cache_mode. Split last two cases in 048 to 074. Use long option "--cache" instead of "-t" for qemu-io. v3: Change _unsupported_qemu_io_options to _supported_cache_modes. Change default mode to "writeback". Clean up some whitespaces in the end of series. Fix "026.out.nocache" case. Fix 048 case on tmpfs. Fam Zheng (6): qemu-iotests: Add "-c <cache-mode>" option qemu-iotests: Honour cache mode in iotests.py qemu-iotests: Add _default_cache_mode and _supported_cache_modes qemu-iotests: Change default cache mode to "writeback" qemu-iotests: Clean up spaces in usage output qemu-iotests: Split qcow2 only cases in 048 tests/qemu-iotests/026 | 3 +- tests/qemu-iotests/039 | 3 +- tests/qemu-iotests/048 | 27 -------------- tests/qemu-iotests/048.out | 16 -------- tests/qemu-iotests/052 | 4 +- tests/qemu-iotests/074 | 86 +++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/074.out | 18 +++++++++ tests/qemu-iotests/check | 2 +- tests/qemu-iotests/common | 37 ++++++++++++++----- tests/qemu-iotests/common.rc | 25 ++++++++----- tests/qemu-iotests/iotests.py | 3 +- 11 files changed, 155 insertions(+), 69 deletions(-) create mode 100644 tests/qemu-iotests/074 create mode 100644 tests/qemu-iotests/074.out -- 1.8.4.2