Skip to contentSkip to conversation

iotests/147: Fix drive parameters

PATCH Applied Max Reitz 2 participants 3 messages Feb 6, 2020

lore
Share & tools
lore

Max Reitz

author
#0 lore raw

PATCH 1/1 iotests/147: Fix drive parameters

8dff69b94 added an aio parameter to the drive parameter but forgot to add a comma before, thus breaking the test. Fix it again.

Fixes 8dff69b9415b4287e900358744b732195e1ab2e2
---
 tests/qemu-iotests/147 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qemu-iotests/147 +1 -1
index 2b6f859a09..30782b8924 100755
@@ -134,7 +134,7 @@ class BuiltinNBD(NBDBlockdevAddBase):
         self.server.add_drive_raw('if=none,id=nbd-export,' +
                                   'file=%s,' % test_img +
                                   'format=%s,' % imgfmt +
-                                  'cache=%s' % cachemode +
+                                  'cache=%s,' % cachemode +
                                   'aio=%s' % aiomode)
         self.server.launch()
 
Signature · 1 line
2.24.1
Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 8 lines · Max Reitz

8dff69b94 added an aio parameter to the drive parameter but forgot to add a comma before, thus breaking the test. Fix it again.

Fixes 8dff69b9415b4287e900358744b732195e1ab2e2
---
  tests/qemu-iotests/147 | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Aha - that's what my bisect just landed on. And what's worse, the breakage leaves behind orphaned qemu processes (four per failed test).

(I would have included it in my NBD pull request, except I sent that just minutes before this email arrived, and I'm not sure when my next pull request will be...)

Quoted 15 lines
tests/qemu-iotests/147 +1 -1
index 2b6f859a09..30782b8924 100755
@@ -134,7 +134,7 @@ class BuiltinNBD(NBDBlockdevAddBase):
          self.server.add_drive_raw('if=none,id=nbd-export,' +
                                    'file=%s,' % test_img +
                                    'format=%s,' % imgfmt +
-                                  'cache=%s' % cachemode +
+                                  'cache=%s,' % cachemode +
                                    'aio=%s' % aiomode)
          self.server.launch()
 
Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org
author Applied
#2 lore raw
In reply to Max Reitz
Quoted 5 lines · Max Reitz

8dff69b94 added an aio parameter to the drive parameter but forgot to add a comma before, thus breaking the test. Fix it again.

Fixes 8dff69b9415b4287e900358744b732195e1ab2e2

Applied to my block branch.

Max