Skip to contentSkip to conversation

iotests: Fix expected whitespace for 185

PATCH In review Eric Blake 3 participants 4 messages Feb 2, 2021

lore
Share & tools
lore

Eric Blake

author
#0 lore raw

PATCH 1/1 iotests: Fix expected whitespace for 185

Commit f93e19fb03b adjusted various iotest whitespace discrepancies, but missed a test that is not part of default 'make check'.

---
 tests/qemu-iotests/185.out | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/185.out +1 -1
index 9dedc8eacbed..754a64125865 100644
@@ -89,7 +89,7 @@ Formatting 'TEST_DIR/t.qcow2.copy', fmt=qcow2 cluster_size=65536 extended_l2=off
                       'format': 'IMGFMT',
                       'sync': 'full',
                       'speed': 65536,
-                      'x-perf': { 'max-chunk': 65536 } } }
+                      'x-perf': {'max-chunk': 65536} } }
 Formatting 'TEST_DIR/t.qcow2.copy', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "disk"}}
 {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "disk"}}
Signature · 1 line
2.30.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Eric Blake

Commit f93e19fb03b adjusted various iotest whitespace discrepancies, but missed a test that is not part of default 'make check'.

Actually, at point of f93e19fb03b there is no x-perf at all, so it's not a miss in f93e19fb03b...

Let me bisect it...

Hmm, seems, it's wrong since introducing this line in 61623f82153788e

Why was it wrongly added - it's a question.. Looks like something was merged in a meantime, that changed how qmp log looks like.. And original patch was made before that. But I don't want to dig more :)

Quoted 12 lines
---
  tests/qemu-iotests/185.out | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/185.out +0 -0
index 9dedc8eacbed..754a64125865 100644

tests/qemu-iotests/185.out Formatting 'TEST_DIR/t.qcow2.copy', fmt=qcow2 cluster_size=65536 extended_l2=off · line 95

Quoted 8 lines
tests/qemu-iotests/185.out +1 -1
@@ -89,7 +89,7 @@ Formatting 'TEST_DIR/t.qcow2.copy', fmt=qcow2 cluster_size=65536 extended_l2=off
                        'format': 'IMGFMT',
                        'sync': 'full',
                        'speed': 65536,
-                      'x-perf': { 'max-chunk': 65536 } } }
+                      'x-perf': {'max-chunk': 65536} } }
  Formatting 'TEST_DIR/t.qcow2.copy', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16
  {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "disk"}}
  {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "disk"}}

for the patch itself:

Signature · 2 lines
Best regards,
Vladimir
#2 lore raw
Quoted 11 lines · Vladimir Sementsov-Ogievskiy
Quoted 2 lines · Eric Blake

Commit f93e19fb03b adjusted various iotest whitespace discrepancies, but missed a test that is not part of default 'make check'.

Actually, at point of f93e19fb03b there is no x-perf at all, so it's not a miss in f93e19fb03b...

Let me bisect it...

Hmm, seems, it's wrong since introducing this line in 61623f82153788e

Assuming you'll reword the commit description:

Quoted 38 lines

Why was it wrongly added - it's a question.. Looks like something was merged in a meantime, that changed how qmp log looks like.. And original patch was made before that. But I don't want to dig more :)

Quoted 18 lines

---
  tests/qemu-iotests/185.out | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/185.out +0 -0
index 9dedc8eacbed..754a64125865 100644
@@ -89,7 +89,7 @@ Formatting 'TEST_DIR/t.qcow2.copy', fmt=qcow2

cluster_size=65536 extended_l2=off
                        'format': 'IMGFMT',
                        'sync': 'full',
                        'speed': 65536,
-                      'x-perf': { 'max-chunk': 65536 } } } +                      'x-perf': {'max-chunk': 65536} } } Formatting 'TEST_DIR/t.qcow2.copy', fmt=qcow2 cluster_size=65536

Quoted 9 lines

extended_l2=off compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16
  {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id":
"disk"}}
  {"timestamp": {"seconds":  TIMESTAMP, "microseconds":  TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id":
"disk"}}

for the patch itself:

author
#3 lore raw
In reply to Vladimir Sementsov-Ogievskiy
Quoted 8 lines · Vladimir Sementsov-Ogievskiy
Quoted 2 lines · Eric Blake

Commit f93e19fb03b adjusted various iotest whitespace discrepancies, but missed a test that is not part of default 'make check'.

Actually, at point of f93e19fb03b there is no x-perf at all, so it's not a miss in f93e19fb03b...

Quoted 7 lines

Let me bisect it...

Hmm, seems, it's wrong since introducing this line in 61623f82153788e

Why was it wrongly added - it's a question.. Looks like something was merged in a meantime, that changed how qmp log looks like.. And original patch was made before that. But I don't want to dig more :)

Okay, I'll adjust my commit message; we definitely had a case of patches crossing one another, reintroducing the problem.

Quoted 4 lines

for the patch itself:

Thanks; I'll include it in my NBD pull request, since I found it while using iotests for that.

Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org