OSDN Git Service

iotests.py: Fix VM.run_job
authorMax Reitz <mreitz@redhat.com>
Wed, 15 May 2019 20:15:02 +0000 (22:15 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 20 May 2019 15:08:57 +0000 (17:08 +0200)
log() is in the current module, there is no need to prefix it.  In fact,
doing so may make VM.run_job() unusable in tests that never use
iotests.log() themselves.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
tests/qemu-iotests/iotests.py

index d96ba1f..7bde380 100644 (file)
@@ -552,7 +552,7 @@ class VM(qtest.QEMUQtestMachine):
                     elif status == 'null':
                         return error
                 else:
-                    iotests.log(ev)
+                    log(ev)
 
     def node_info(self, node_name):
         nodes = self.qmp('query-named-block-nodes')