Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D0034C47080 for ; Tue, 1 Jun 2021 18:24:30 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5A3ED613B4 for ; Tue, 1 Jun 2021 18:24:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5A3ED613B4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:33950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lo941-0005H5-G2 for qemu-devel@archiver.kernel.org; Tue, 01 Jun 2021 14:24:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo91B-0006X6-R6 for qemu-devel@nongnu.org; Tue, 01 Jun 2021 14:21:34 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:38014) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lo918-0004J8-9J for qemu-devel@nongnu.org; Tue, 01 Jun 2021 14:21:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1622571689; 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=NR85mYWRWuNKsaFvr4UgFaMk4DE3k12fjXxe5hO9moU=; b=RMDusJ4P2V8lgj2+JBVGisW8eYp4Lvnp1WGPMLUzuEFkZifFzB7WxOooJJLO1ES6j50dfk FD7vh4vM5EWuPpWWlRKlFWr5KoSDJ3yuqPoJ7Qzqp4BwnI3Q+xRSOL0SirvjANCVx5QRgU /q1ABmvDOYkUlMFCz9gzNT9OTqm7mVU= Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-282-yV0OKbGPMS-kOJDhIckFIw-1; Tue, 01 Jun 2021 14:21:25 -0400 X-MC-Unique: yV0OKbGPMS-kOJDhIckFIw-1 Received: by mail-ed1-f71.google.com with SMTP id s20-20020a0564025214b029038752a2d8f3so8301384edd.2 for ; Tue, 01 Jun 2021 11:21:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NR85mYWRWuNKsaFvr4UgFaMk4DE3k12fjXxe5hO9moU=; b=iGARKNHnF4gJ2hIB7W+gMzJJfAfbgKpqXsUTkX6WE/zrN28AjuTxnQzL7N5cFvdCQb W0soVs2ERAHXJX4KsoVE487LubYq5cZ3IOh/Azktg6t2tb+ZCmMh1s+OXYAWPym1aqlx ly8zAWSfz4vSc1WpmqFIIrSwTmc221dovw3wVSdeUDrsA7UIw6MbS90F9eqOkev2v62H aq39Tk4/y23yDerGwly5sh/IwAbNuW/juNa7EIu/qcirMd8nQf+JO3Xqp1DqHs6NlxaD CnUuJhaL+XaI6UGvWRSVI9GbcPuCd8o/JKicaQHYpQdgFvzFTGriG+5HxLJcSQqUfI10 l44Q== X-Gm-Message-State: AOAM530w1SP+ftCupwqaGOdBkkPY8mYeN7hSIz+GNCBqi2d1qqUuKCWA t0fTBs11zWapvoRypEFW05dAh3ThnWZtIDKK8VTleDX6H0iekmVyMIdLYBHNUT89I7hMWoPZdcb HoXp5f9QRUUbuP3U= X-Received: by 2002:a17:906:4e96:: with SMTP id v22mr8702661eju.23.1622571684447; Tue, 01 Jun 2021 11:21:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweQnWwotWErJOVFRqF616FD3vD2gnPhYaPmhbhkk9LWFVGrlwEFJQJs/AJZ/fNtnoGeDO6rQ== X-Received: by 2002:a17:906:4e96:: with SMTP id v22mr8702626eju.23.1622571684188; Tue, 01 Jun 2021 11:21:24 -0700 (PDT) Received: from [192.168.1.36] (235.red-83-57-168.dynamicip.rima-tde.net. [83.57.168.235]) by smtp.gmail.com with ESMTPSA id h23sm3661694eds.73.2021.06.01.11.21.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Jun 2021 11:21:23 -0700 (PDT) Subject: Re: [PATCH 1/1] VM tests: account for changes in qemu.utils.get_info_usernet_hostfwd_port() To: Cleber Rosa References: <20210528023220.417057-1-jsnow@redhat.com> <20210601154546.130870-1-crosa@redhat.com> <20210601154546.130870-2-crosa@redhat.com> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: <9c314b13-1cd0-e8e7-0685-b8ee36e7820b@redhat.com> Date: Tue, 1 Jun 2021 20:21:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: 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-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -37 X-Spam_score: -3.8 X-Spam_bar: --- X-Spam_report: (-3.8 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.371, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.613, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Huth , Beraldo Leal , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , qemu-devel , Wainer dos Santos Moschetta , John Snow , Auger Eric , Willian Rampazzo , =?UTF-8?Q?Alex_Benn=c3=a9e?= , Eduardo Habkost Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 6/1/21 8:07 PM, Willian Rampazzo wrote: > On Tue, Jun 1, 2021 at 2:36 PM Willian Rampazzo wrote: >> >> On Tue, Jun 1, 2021 at 12:46 PM Cleber Rosa wrote: >>> >>> The utility function actually accepts a string, and not the raw >>> dictionary response from QMP. Also, it returns (optionally) an >>> integer, so that must also be accounted for. >>> >>> Signed-off-by: John Snow >>> Signed-off-by: Cleber Rosa >>> --- >>> tests/vm/basevm.py | 4 ++-- >>> 1 file changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/tests/vm/basevm.py b/tests/vm/basevm.py >>> index 6f4f0fc95e..0f2e436ed3 100644 >>> --- a/tests/vm/basevm.py >>> +++ b/tests/vm/basevm.py >>> @@ -227,7 +227,7 @@ def _ssh_do(self, user, cmd, check): >>> "-o", "UserKnownHostsFile=" + os.devnull, >>> "-o", >>> "ConnectTimeout={}".format(self._config["ssh_timeout"]), >>> - "-p", self.ssh_port, "-i", self._ssh_tmp_key_file] >>> + "-p", str(self.ssh_port), "-i", self._ssh_tmp_key_file] >>> # If not in debug mode, set ssh to quiet mode to >>> # avoid printing the results of commands. >>> if not self.debug: >>> @@ -305,7 +305,7 @@ def boot(self, img, extra_args=[]): >>> # Init console so we can start consuming the chars. >>> self.console_init() >>> usernet_info = guest.qmp("human-monitor-command", >>> - command_line="info usernet") >>> + command_line="info usernet").get("return") >>> self.ssh_port = get_info_usernet_hostfwd_port(usernet_info) >> >> From here, your file differs from the upstream and your patch does not >> work. I'm trying on commit 52848929b70dcf92a68aedcfd90207be81ba3274. > > Talking to Cleber he mentioned he submitted In-reply-to Please don't, as the series end up buried in the other email thread. > John's PR, but > Gmail did not show it for me. > > On top of John's PR > (https://patchew.org/QEMU/20210528023220.417057-1-jsnow@redhat.com/): The syntax is: Based-on: 20210528023220.417057-1-jsnow@redhat.com https://wiki.qemu.org/Contribute/SubmitAPatch#Base_patches_against_current_git_master > > Tested-by: Willian Rampazzo > Reviewed-by: Willian Rampazzo > >> >>> if not self.ssh_port: >>> raise Exception("Cannot find ssh port from 'info usernet':\n%s" % \ >>> -- >>> 2.25.4 >>> >