Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5663235pxb; Wed, 26 Jan 2022 18:01:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxAgTpL3hR6FpRe6+s4Eg40YoHACBEDtKwWGg7rl9qu5fUoo/w/LrM7Wp6dupEuXKh9oIAi X-Received: by 2002:aa7:da4b:: with SMTP id w11mr1708422eds.118.1643248915146; Wed, 26 Jan 2022 18:01:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643248915; cv=none; d=google.com; s=arc-20160816; b=cX53J9SH7XE1xczj/jiQDi/tU2JhBbRO9IUxpCPqusazuEr0mDgle+lsBa+st6yHj4 3Iayu2XL1CXonH2BV4mTfX6wq7jn1NjqDXiKf2Hv0jtn+er1i+1WIipb2y2sJX12KNOC N0risM+nHGl+IxeDqKPE/csuhIThuBRrGZf91YdsMJY4uxuWmQiTtN6kI7IdWVZYX+zp b0FjojNWG6Xdgof3g5pz33VP4rnpaYXyqooIECasiwXCTUMtwyE/SeOG7ssJXnu4/3Ci yZlEehKpcrM6gvfU+Cj1LDf3DT8UW1IsVXLICmj92K1eSxAGlJPhz8HLsffx3aR0fRE+ 8G+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lD+IeXw2g3SnEFxxFA4tPs2Gg+BBC68wNzC39s+tbCM=; b=KmcXi/298DIH2u1Pe6UiAkR9MiUjXsTdKAmuixnnfrfk8mLEZNX2NHEjvpfS3OdM/W WvqXYEcg0N3hu5YvwB887k2tRcIl+5PTeBnwDoa88bOF3XHUSEqV2VfWkBNuUkALH/nC 0s3ig1a/VSzISpEmat20Qr7cps0NFlhWyxPP5hjwRa7/GW0XDy9vH7a6Q2YwUDHjQV6y Ls1Qm0h7oVms0ZepAwuLEDG10iJ7+DySyMNrZ7BIiym/UXK8R1SPvI81HzGY0Qq958Ua HUoY40JXZHA6VSIFRApnO13LC21TfPRNp6NSzkWtFZyGQmLEZ8zhbtMD5u2f6FHiQOxz XqqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=g0V6+9+e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s26si528695edi.122.2022.01.26.18.01.30; Wed, 26 Jan 2022 18:01:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=g0V6+9+e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232650AbiAZViq (ORCPT + 99 others); Wed, 26 Jan 2022 16:38:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232586AbiAZVin (ORCPT ); Wed, 26 Jan 2022 16:38:43 -0500 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80FAAC06161C for ; Wed, 26 Jan 2022 13:38:43 -0800 (PST) Received: by mail-pg1-x534.google.com with SMTP id s16so429480pgs.13 for ; Wed, 26 Jan 2022 13:38:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lD+IeXw2g3SnEFxxFA4tPs2Gg+BBC68wNzC39s+tbCM=; b=g0V6+9+eAxLohg+otzC6p3X+pNpL0yR/rmt8gVDtaGXP6CRU88RuMCvIIzAUGX7DPr /yOr+771CdzmvistWwFyguhIoaIJH+AC1ufY5Vd1IEjfjpxwRAA08P+kjWBGUF4VsNis TVMhLX9wF+TzBkTnFpFIZ0RtPK1qWEhWgfzW2agGJlpBR5cRhuPVRJBQxuaUzN7u6VZh qXZl+9wP/xYb4dQYwnySO/CCGuMfBPzijp4KgJXjatUVKkGsEVtrInoswg0MG74iOxxc e55fcHJmaEQCiGS0B876dh8n0K2oQYkDCfRSVp2xDsAZmIiaesqmAWcHyqGwZL8tsKI4 0RoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lD+IeXw2g3SnEFxxFA4tPs2Gg+BBC68wNzC39s+tbCM=; b=cv1Nz4zkjR7pxG70ydgMdmjXGohxj23/5d4O1CSVzU741xO3i7WUUw3ZNzYpZeyDgX VNpfKx2OpvRhq0sTfLfx+YYlt6FFUDgdK9LjPBP5WoPJ/u2UsrVJB2GNucdnPg70QhWO Q6j0tsn620d5NjVOq0Nac9yIkAX9WNoniBiUBrT+5hFWSdLyz7gQEgDfZKl8huRMtqtj IJwQeZM+Qbl/uWep2xR9/LM04akMfWwWcoIXiGhfMrJEkYgMop8oq0dTKAowxcAv1AYv jCKXwGsEIYZx2cJ2GJpPJyFVIQal2eBE4TFOWCxojwEUSgWnxN8bywJLzDCORvxafLGa u+8A== X-Gm-Message-State: AOAM5303qxMSkr1hksgV0Z6LDdrnYaJJ/7gHFo51rI46dXGHXWu8FPIy fJVBwsOYplGBhapLFXjVW4H33S0srZP4NAfKiOTZ3A== X-Received: by 2002:a05:6a00:1508:: with SMTP id q8mr261428pfu.3.1643233122805; Wed, 26 Jan 2022 13:38:42 -0800 (PST) MIME-Version: 1.0 References: <20220118190922.1557074-1-dlatypov@google.com> In-Reply-To: From: Brendan Higgins Date: Wed, 26 Jan 2022 16:38:31 -0500 Message-ID: Subject: Re: [PATCH 1/5] kunit: tool: drop mostly unused KunitResult.result field To: Daniel Latypov Cc: David Gow , Linux Kernel Mailing List , KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Shuah Khan Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 26, 2022 at 2:55 PM Daniel Latypov wrote: > > On Thu, Jan 20, 2022 at 9:19 AM Daniel Latypov wrote: > > > That being said, I can live with the current solution, but'd ideally > > > like a comment or something to make the return value Tuple a bit more > > > obvious. > > > > A comment to explain that Tuple == multiple return values from a func? > > Or something else? > > Friendly ping. > Do we want a comment like this? > > # Note: Python uses tuples internally for multiple return values > def foo() -> Tuple[int, int] > return 0, 1 I don't feel that's necessary. I think the use of tuple return types in Python is fairly common and don't require a comment, but I don't feel strongly about it either way. > I can go ahead and add that and send a v2 out. > > FYI, if you do this in a REPL > >>> a = foo() > >>> type(a) > > > The syntax for `a, b = foo()` is just using Python's unpacking feature, i.e. > b, c = (1, 2) > > So it's all just syntactic sugar around tuples. > > > > > Also ah, I thought we had more instances of multiple return in kunit.py. > > Looks like the only other is get_source_tree_ops_from_qemu_config(). > > isolate_ktap_output() technically shows this off as well, but via yields. > > > > > > > > Thoughts? Personally, I think the change as is.