[Autotest][PATCH 6/7] kvm-test: Repairs multihost control file.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Repairs an error with processing test fail exception.

Signed-off-by: Jiří Župka <jzupka@xxxxxxxxxx>
---
 client/tests/kvm/multi_host.srv |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/client/tests/kvm/multi_host.srv b/client/tests/kvm/multi_host.srv
index e54325f..fdd04db 100644
--- a/client/tests/kvm/multi_host.srv
+++ b/client/tests/kvm/multi_host.srv
@@ -102,7 +102,7 @@ def run(machines):
             host.params['hostid'] = machine
 
         # Report the parameters we've received
-        print "Test parameters:"
+        logging.debug("Test parameters:")
         keys = params.keys()
         keys.sort()
         for key in keys:
@@ -117,18 +117,22 @@ def run(machines):
             host.control += ("job.run_test('kvm', tag='%s', params=%s)" %
                              (host.params['shortname'], host.params))
 
-        logging.info('Master control file:\n%s', _hosts[machines[0]].control)
+        logging.debug('Master control file:\n%s', _hosts[machines[0]].control)
         for machine in machines[1:]:
             host = _hosts[machine]
-            logging.info('Slave control file:\n%s', host.control)
+            logging.debug('Slave control file:\n%s', host.control)
 
         commands = []
+
         for machine in machines:
             host = _hosts[machine]
             commands.append(subcommand(host.at.run,
                                        [host.control, host.host.hostname]))
 
-        parallel(commands)
+        try:
+            parallel(commands)
+        except error.AutoservError as e:
+            logging.error(e)
 
 if 'all' in args:
     # Run test with all machines at once.
-- 
1.7.7.6

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux