From: Lucas Meneghel Rodrigues Subject: [PATCH] virt.virt_test_utils: Use Thread.isAlive instead of is_alive Date: Mon, 12 Sep 2011 13:55:33 -0300 Message-ID: <1315846533-5620-1-git-send-email-lmr@redhat.com> Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues To: autotest@test.kernel.org Return-path: Received: from mail-vx0-f174.google.com ([209.85.220.174]:46853 "EHLO mail-vx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752013Ab1ILQzz (ORCPT ); Mon, 12 Sep 2011 12:55:55 -0400 Received: by vxi9 with SMTP id 9so2907245vxi.19 for ; Mon, 12 Sep 2011 09:55:54 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: This API is only avaliable from python 2.6 onwards, so use isAlive, which does exist under 2.4. Signed-off-by: Lucas Meneghel Rodrigues --- client/virt/virt_test_utils.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/virt/virt_test_utils.py b/client/virt/virt_test_utils.py index 7c3343b..b5e845a 100644 --- a/client/virt/virt_test_utils.py +++ b/client/virt/virt_test_utils.py @@ -602,7 +602,7 @@ def run_autotest(vm, session, control_path, timeout, outputdir, params): bg.start() - while bg.is_alive(): + while bg.isAlive(): logging.info("Autotest job did not end, start a round of " "migration") vm.migrate(timeout=mig_timeout, protocol=mig_protocol) -- 1.7.6