From nobody Mon Feb 9 08:56:59 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1632762198; cv=none; d=zohomail.com; s=zohoarc; b=mpRUMvWPuVmZnULhOr4BoHMu+VNeEKrntL55pPouyK94Y5gV9tJMZmVCq98PsKydd297qHUbUiw0+hqfr71gg69E71uczj/K7YOra6aM0ngQWLnczq1UlQ2W4eFriiCcjfH1/TuHVVVJnNPhUfLy5tEKnpAsT7T8aGQpAUpLa14= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1632762198; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Khb8hgEBtXVnFEmx9u95JviCusuAqE5zASz4r+rPaZQ=; b=TSIhLoK4ekM6jYRFR80wBeKMvtBQSW5l7cS5ojkJvW8tSuKA8SjCv67Dk71QgOy3ols5J/oHZX3qeCrDzRqMvmMTXxIHi6vDUGB6WwBEZI1HJ3Mp2aQW+WPz6Igp3FzIuuVsMJMhUGN2wNZ4RYkH43MeGZISSSJGD6v4V6Ry4e8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1632762198742991.994620715404; Mon, 27 Sep 2021 10:03:18 -0700 (PDT) Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-268--RJtN2rGN160KfmnDdjhLg-1; Mon, 27 Sep 2021 13:03:15 -0400 Received: by mail-wm1-f71.google.com with SMTP id 17-20020a05600c029100b00305eac9f29aso187410wmk.1 for ; Mon, 27 Sep 2021 10:03:14 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (118.red-83-35-24.dynamicip.rima-tde.net. [83.35.24.118]) by smtp.gmail.com with ESMTPSA id n7sm17270297wra.37.2021.09.27.10.03.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 10:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1632762197; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Khb8hgEBtXVnFEmx9u95JviCusuAqE5zASz4r+rPaZQ=; b=XANefPfjW+J4JbYoY+YPxt2O6sSXM+DEgRsvjQ/KuIf7VIH61llNXvG/S5K0AJ/5yKR0ov YoF2QrHSdWKJVj24PCZ+6RGjICgHmuPdCQDitlRviCMgafCVJixwJ1rSneO3w5koAyQC1H TrHnn/DY9/I2OBt6EBoDIDnqJzskY98= X-MC-Unique: -RJtN2rGN160KfmnDdjhLg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Khb8hgEBtXVnFEmx9u95JviCusuAqE5zASz4r+rPaZQ=; b=6n+BMvtFpnzoB+hXgSdHzhbt5TGKwd8k7S3cXQmQsYsGNwY5lobFU8SF7JJ381zMum XIWhwIcGwwg1At11q5jUYHSC5ubeKCltBpqAbRFdB6NxRyv6wL2a99Q8DT34JjiwEJsf E4JzyZmMWXodoRU4dehWNgljqUklO3/zj+PstwsVuVOrwcXB53VrxN2NvVle1oZZ6lY1 fT/YvfzJSKfRnDsehJXxy8enE6ClmAIjL/RMXTa9V43W0BKIpYT2ZWg4FkzXqAokq1iH NPLHKloDW577Mwsy117KWjAcxGwNQktg+8YBtlMDl8ykYdvnfZm97t/7g9m+rwavMztG 36yA== X-Gm-Message-State: AOAM532i0tA7Ozixb+oLli4zAvT+F/pA9Y+N6RUaeYpo8pE/yL6OUHQU hzsuCsmfXQSRHEIcyhBj5hYyWxIUGyZp5TtyntSp92+hcHHNF6uIbUzQZTL0Pah8y9HRWX/nk8O ovHydDmLUlENIpg== X-Received: by 2002:a5d:6c6d:: with SMTP id r13mr999903wrz.439.1632762193858; Mon, 27 Sep 2021 10:03:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1jYj/NJft1hQuOQz0kG8I8fcMs2r23GhvtvY0/l7THjYL+iueg8va2s0ORjEHsP5nvFgMyA== X-Received: by 2002:a5d:6c6d:: with SMTP id r13mr999891wrz.439.1632762193729; Mon, 27 Sep 2021 10:03:13 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Willian Rampazzo , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PULL 10/21] avocado_qemu: tweak ssh connect method Date: Mon, 27 Sep 2021 19:02:16 +0200 Message-Id: <20210927170227.2014482-11-philmd@redhat.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210927170227.2014482-1-philmd@redhat.com> References: <20210927170227.2014482-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1632762200146100001 From: Willian Rampazzo The current implementation will crash if the connection fails as the `time` module is not imported. Fix the import problem. While here, tweaks the connection to wait progressively when the connection fails. Signed-off-by: Willian Rampazzo [PMD: Reworded description] Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20210920204932.94132-5-willianr@redhat.com> --- tests/acceptance/avocado_qemu/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/avocado_qemu/__init__.py b/tests/acceptance/a= vocado_qemu/__init__.py index edb9ed74852..c3613f92620 100644 --- a/tests/acceptance/avocado_qemu/__init__.py +++ b/tests/acceptance/avocado_qemu/__init__.py @@ -13,6 +13,7 @@ import shutil import sys import tempfile +import time import uuid =20 import avocado @@ -305,8 +306,7 @@ def ssh_connect(self, username, credential, credential_= is_key=3DTrue): self.ssh_session.connect() return except: - time.sleep(4) - pass + time.sleep(i) self.fail('ssh connection timeout') =20 def ssh_command(self, command): --=20 2.31.1