[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-block] [PULL 5/7] iotest: Fix filtering order in 226
From: |
Kevin Wolf |
Subject: |
[Qemu-block] [PULL 5/7] iotest: Fix filtering order in 226 |
Date: |
Mon, 23 Jul 2018 18:45:28 +0200 |
From: Max Reitz <address@hidden>
The test directory should be filtered before the image format, otherwise
the test will fail if the image format is part of the test directory,
like so:
[...]
-can't open: Could not open 'TEST_DIR/t.IMGFMT': Is a directory
+can't open: Could not open '/tmp/test-IMGFMT/t.IMGFMT': Is a directory
[...]
Signed-off-by: Max Reitz <address@hidden>
Reviewed-by: John Snow <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
---
tests/qemu-iotests/226 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/qemu-iotests/226 b/tests/qemu-iotests/226
index 34987d43f9..211ea9888a 100755
--- a/tests/qemu-iotests/226
+++ b/tests/qemu-iotests/226
@@ -55,10 +55,10 @@ for PROTO in "file" "host_device" "host_cdrom"; do
echo "=== Testing with driver:$PROTO ==="
echo
echo "== Testing RO =="
- $QEMU_IO -c "open -r -o driver=$PROTO,filename=$TEST_IMG" 2>&1 |
_filter_imgfmt | _filter_testdir
+ $QEMU_IO -c "open -r -o driver=$PROTO,filename=$TEST_IMG" 2>&1 |
_filter_testdir | _filter_imgfmt
$QEMU_IO -c "open -r -o driver=$PROTO,filename=/dev/null" 2>&1 |
_filter_imgfmt
echo "== Testing RW =="
- $QEMU_IO -c "open -o driver=$PROTO,filename=$TEST_IMG" 2>&1 |
_filter_imgfmt | _filter_testdir
+ $QEMU_IO -c "open -o driver=$PROTO,filename=$TEST_IMG" 2>&1 |
_filter_testdir | _filter_imgfmt
$QEMU_IO -c "open -o driver=$PROTO,filename=/dev/null" 2>&1 |
_filter_imgfmt
done
--
2.13.6
- [Qemu-block] [PULL 0/7] Block layer patches, Kevin Wolf, 2018/07/23
- [Qemu-block] [PULL 2/7] block: Fix typos in comments (found by codespell), Kevin Wolf, 2018/07/23
- [Qemu-block] [PULL 4/7] iotests: remove LUKS support from test 226, Kevin Wolf, 2018/07/23
- [Qemu-block] [PULL 3/7] qemu-img: avoid overflow of min_sparse parameter, Kevin Wolf, 2018/07/23
- [Qemu-block] [PULL 6/7] iotests: Disallow compat=0.10 in 223, Kevin Wolf, 2018/07/23
- [Qemu-block] [PULL 7/7] block/vvfat: Disable debug message by default, Kevin Wolf, 2018/07/23
- [Qemu-block] [PULL 5/7] iotest: Fix filtering order in 226,
Kevin Wolf <=
- [Qemu-block] [PULL 1/7] qemu-iotests: Use host_device instead of file in 149, Kevin Wolf, 2018/07/23
- Re: [Qemu-block] [PULL 0/7] Block layer patches, Peter Maydell, 2018/07/23