mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
tests/: spelling fixes
with some rewording in tests/qemu-iotests/298 tests/qtest/fuzz/generic_fuzz.c tests/unit/test-throttle.c as suggested by Eric. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
d30b5bc95a
commit
96420a30e0
49 changed files with 69 additions and 69 deletions
|
@ -39,7 +39,7 @@ trap "_cleanup; exit \$status" 0 1 2 3 15
|
|||
. ./common.filter
|
||||
. ./common.pattern
|
||||
|
||||
# Any format supporting intenal snapshots
|
||||
# Any format supporting internal snapshots
|
||||
_supported_fmt qcow2
|
||||
_supported_proto generic
|
||||
# Internal snapshots are (currently) impossible with refcount_bits=1,
|
||||
|
|
|
@ -845,7 +845,7 @@ class TestCommitWithFilters(iotests.QMPTestCase):
|
|||
self.assertIsNone(self.vm.node_info('cow-2'))
|
||||
self.assertIsNotNone(self.vm.node_info('cow-1'))
|
||||
|
||||
# 2 has been comitted into 1
|
||||
# 2 has been committed into 1
|
||||
self.pattern_files[2] = self.img1
|
||||
|
||||
def test_commit_through_filter(self):
|
||||
|
@ -863,7 +863,7 @@ class TestCommitWithFilters(iotests.QMPTestCase):
|
|||
self.assertIsNone(self.vm.node_info('bottom-filter'))
|
||||
self.assertIsNotNone(self.vm.node_info('cow-0'))
|
||||
|
||||
# 1 has been comitted into 0
|
||||
# 1 has been committed into 0
|
||||
self.pattern_files[1] = self.img0
|
||||
|
||||
def test_filtered_active_commit_with_filter(self):
|
||||
|
@ -900,7 +900,7 @@ class TestCommitWithFilters(iotests.QMPTestCase):
|
|||
drv0 = next(dev for dev in blockdevs if dev['qdev'] == 'drv0')
|
||||
self.assertEqual(drv0['inserted']['node-name'], 'cow-2')
|
||||
|
||||
# 3 has been comitted into 2
|
||||
# 3 has been committed into 2
|
||||
self.pattern_files[3] = self.img2
|
||||
|
||||
def test_filtered_active_commit_without_filter(self):
|
||||
|
@ -916,7 +916,7 @@ class TestCommitWithFilters(iotests.QMPTestCase):
|
|||
self.assertIsNone(self.vm.node_info('cow-3'))
|
||||
self.assertIsNotNone(self.vm.node_info('cow-2'))
|
||||
|
||||
# 3 has been comitted into 2
|
||||
# 3 has been committed into 2
|
||||
self.pattern_files[3] = self.img2
|
||||
|
||||
class TestCommitWithOverriddenBacking(iotests.QMPTestCase):
|
||||
|
|
|
@ -125,7 +125,7 @@ aio_flush
|
|||
EOF
|
||||
|
||||
# Sequential write, but the next cluster is already allocated
|
||||
# and phyiscally in the right position
|
||||
# and physically in the right position
|
||||
cat <<EOF
|
||||
write -P 89 0x80000 0x1000
|
||||
write -P 90 0x96000 0x8000
|
||||
|
|
|
@ -182,7 +182,7 @@ done
|
|||
echo
|
||||
echo "=== Testing afl image with a very large capacity ==="
|
||||
_use_sample_img afl9.vmdk.bz2
|
||||
_img_info | grep -q 'Cannot allocate memory' && _notrun "Insufficent memory, skipped test"
|
||||
_img_info | grep -q 'Cannot allocate memory' && _notrun "Insufficient memory, skipped test"
|
||||
_img_info
|
||||
_cleanup_test_img
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ _supported_os Linux
|
|||
# we have explicit tests for various cluster sizes, the remaining tests
|
||||
# require the default 64k cluster
|
||||
# we don't have explicit tests for zstd qcow2 compression type, as zstd may be
|
||||
# not compiled in. And we can't create compat images with comression type
|
||||
# not compiled in. And we can't create compat images with compression type
|
||||
# extension
|
||||
_unsupported_imgopts 'refcount_bits=\([^1]\|.\([^6]\|$\)\)' data_file \
|
||||
cluster_size compression_type
|
||||
|
|
|
@ -41,7 +41,7 @@ _supported_fmt qcow2
|
|||
_supported_proto file fuse
|
||||
_require_drivers blkdebug blkverify
|
||||
# blkdebug can only inject errors on bs->file, not on the data_file,
|
||||
# so thie test does not work with external data files
|
||||
# so this test does not work with external data files
|
||||
_unsupported_imgopts data_file
|
||||
|
||||
do_run_qemu()
|
||||
|
|
|
@ -93,7 +93,7 @@ output=$($QEMU_IO -f qcow2 -C -c "read -P 0 1k $((2*1024*1024*1024 - 512))" \
|
|||
"$TEST_WRAP" 2>&1 | _filter_qemu_io)
|
||||
case $output in
|
||||
*allocate*)
|
||||
_notrun "Insufficent memory to run test" ;;
|
||||
_notrun "Insufficient memory to run test" ;;
|
||||
*) printf '%s\n' "$output" ;;
|
||||
esac
|
||||
$QEMU_IO -f qcow2 -C -c "read -P 0 $((3*1024*1024*1024 + 1024)) 1k" \
|
||||
|
|
|
@ -95,7 +95,7 @@ output=$($QEMU_IO \
|
|||
2>&1 | _filter_qemu_io)
|
||||
case $output in
|
||||
*allocate*)
|
||||
_notrun "Insufficent memory to run test" ;;
|
||||
_notrun "Insufficient memory to run test" ;;
|
||||
*) printf '%s\n' "$output" ;;
|
||||
esac
|
||||
$QEMU_IO \
|
||||
|
|
|
@ -140,8 +140,8 @@ class TestTruncate(iotests.QMPTestCase):
|
|||
stat = os.stat(disk)
|
||||
refstat = os.stat(refdisk)
|
||||
|
||||
# Probably we'll want preallocate filter to keep align to cluster when
|
||||
# shrink preallocation, so, ignore small differece
|
||||
# The preallocate filter may keep cluster alignment when shrinking,
|
||||
# so ignore small differences
|
||||
self.assertLess(abs(stat.st_size - refstat.st_size), 64 * 1024)
|
||||
|
||||
# Preallocate filter may leak some internal clusters (for example, if
|
||||
|
|
|
@ -19,7 +19,7 @@ disable=invalid-name,
|
|||
too-many-public-methods,
|
||||
# pylint warns about Optional[] etc. as unsubscriptable in 3.9
|
||||
unsubscriptable-object,
|
||||
# pylint's static analysis causes false positivies for file_path();
|
||||
# pylint's static analysis causes false positives for file_path();
|
||||
# If we really care to make it statically knowable, we'll use mypy.
|
||||
unbalanced-tuple-unpacking,
|
||||
# Sometimes we need to disable a newly introduced pylint warning.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue