[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 12/12] iotests: fix copy-before-write for macOS and FreeBSD
From: |
John Snow |
Subject: |
[PATCH v4 12/12] iotests: fix copy-before-write for macOS and FreeBSD |
Date: |
Fri, 8 Jul 2022 11:35:03 -0400 |
From: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Do not merge: this is a copy of Vladimir's fix that will be taken in
through the iotests tree.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by: John Snow <jsnow@redhat.com>
---
tests/qemu-iotests/tests/copy-before-write | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/qemu-iotests/tests/copy-before-write
b/tests/qemu-iotests/tests/copy-before-write
index 16efebbf8f0..56937b9dfff 100755
--- a/tests/qemu-iotests/tests/copy-before-write
+++ b/tests/qemu-iotests/tests/copy-before-write
@@ -192,6 +192,11 @@ read 1048576/1048576 bytes at offset 0
def test_timeout_break_guest(self):
log = self.do_cbw_timeout('break-guest-write')
+ # macOS and FreeBSD tend to represent ETIMEDOUT as
+ # "Operation timed out", when Linux prefer
+ # "Connection timed out"
+ log = log.replace('Operation timed out',
+ 'Connection timed out')
self.assertEqual(log, """\
wrote 524288/524288 bytes at offset 0
512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
--
2.34.3
- Re: [PATCH v4 01/12] qga: treat get-guest-fsinfo as "best effort", (continued)
- [PATCH v4 04/12] tests/vm: switch centos.aarch64 to CentOS 8 Stream, John Snow, 2022/07/08
- [PATCH v4 08/12] tests/vm: add 1GB extra memory per core, John Snow, 2022/07/08
- [PATCH v4 02/12] tests/vm: use 'cp' instead of 'ln' for temporary vm images, John Snow, 2022/07/08
- [PATCH v4 06/12] tests/vm: remove ubuntu.i386 VM test, John Snow, 2022/07/08
- [PATCH v4 11/12] tests/qemu-iotests: skip 108 when FUSE is not loaded, John Snow, 2022/07/08
- [PATCH v4 12/12] iotests: fix copy-before-write for macOS and FreeBSD,
John Snow <=
- Re: [PATCH v4 00/12] Improve reliability of VM tests, John Snow, 2022/07/12
- Re: [PATCH v4 00/12] Improve reliability of VM tests, Thomas Huth, 2022/07/18