Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1586674rwb; Wed, 5 Oct 2022 01:39:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5U/Ta+owoW+FpjIqt4W7tLePXwbgFkTgAxW0kBGo8xP9TEcaJkVS0CpfTlKjR9Is4byXlK X-Received: by 2002:a17:907:6088:b0:782:e1a:42d6 with SMTP id ht8-20020a170907608800b007820e1a42d6mr23342157ejc.586.1664959166825; Wed, 05 Oct 2022 01:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664959166; cv=none; d=google.com; s=arc-20160816; b=dAHLFKyGFno+5qeaiGD148iQqM+7OanGk1RD+a5jbfs6Ni3t2REv+Fj/fbMcevOtOS ay2ieSRprOdXFZkx7Ar5TvUwDdOI+4O9tgKWplteCmS2qWoAT31PIncyN4gp9awVJe35 kJ6XIJvTaSJ0+JY/QZGjlC1+neErZrJAsnN4t7MhBXP9G2exdHyV3oLQs2KGBMLtyD9x 3Zf/QZrxZjpy9n6DQY8hKqfbY6ITADQQHq7iW+XA9Dm9pik/0J1rzgFiR7EGhcpZZZ19 DalidUqPor56qljwuXnqrwIvrLO3/ENSCevqEZlw8giru4zq9yDSxfgnh4N3LYv/bLJK 4dGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=wpSXCaaCB/VFL9sIVAMJTZUul9wxcN8fQGhYLRUi+r4=; b=wUkUKxy8fO1ICdySfTUKSSmkZ4p0fHCzs+3Mm2Lq6rAex6h9WwyhBpAOLr0HEDN+xB P6TrQa78JTmQ1an/lu+7CXZumPEcvdd9whsEL/AvdfeWcK6ekFhEaOVSOkQ8q+3E1bWr D8oJpAs5/kXxTdFyT46QXHn9HHPSMCFumdzMsrX2eOgVmTzYtagjP7XojALRwciRpmEq L92UoBxqf0PyxX7QOumUXlW8qFsJwHva2ROQmJZ3ZMmp28Oh22qA5yyCzmZJ0HNQnMDt E0WbKCm57jnHDvZeEOq774o/oMX5atlivFGV8img8gz8fnJAYaFiLZRvCi/XX7YwyTDU c8KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=FDVCTTET; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb33-20020a170907962100b0073d72e1633bsi12361675ejc.908.2022.10.05.01.39.01; Wed, 05 Oct 2022 01:39:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=FDVCTTET; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230046AbiJEIdm (ORCPT + 99 others); Wed, 5 Oct 2022 04:33:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230070AbiJEIdR (ORCPT ); Wed, 5 Oct 2022 04:33:17 -0400 Received: from out1.migadu.com (out1.migadu.com [IPv6:2001:41d0:2:863f::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF54174363; Wed, 5 Oct 2022 01:33:15 -0700 (PDT) Date: Wed, 5 Oct 2022 10:33:12 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1664958793; 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: in-reply-to:in-reply-to:references:references; bh=wpSXCaaCB/VFL9sIVAMJTZUul9wxcN8fQGhYLRUi+r4=; b=FDVCTTET0Ie3fW08AizwI0u/MEGtdWVO+PXUVsCzpLY27gQl2gJ3Zt5597bMoDf50Ssrrs s8zT2z/jaMWoS9RCGgqz5nRZR+NEctw8q03ENwaGMItpU1fT4KdVDv+0sNlq8ALWLwndfL dzX5tVHD/gfW2jDmBL2QddrB/p0Rx4M= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Andrew Jones To: Thomas Huth Cc: Paolo Bonzini , Sean Christopherson , kvm@vger.kernel.org, Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] KVM: selftests: Use TAP interface in the kvm_binary_stats_test Message-ID: <20221005083312.dnblbpe6wabspkzk@kamzik> References: <20221004093131.40392-1-thuth@redhat.com> <20221004093131.40392-2-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221004093131.40392-2-thuth@redhat.com> X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 04, 2022 at 11:31:29AM +0200, Thomas Huth wrote: > The kvm_binary_stats_test test currently does not have any output (unless > one of the TEST_ASSERT statement fails), so it's hard to say for a user > how far it did proceed already. Thus let's make this a little bit more > user-friendly and include some TAP output via the kselftest.h interface. I like the idea of switching the entire kvm selftests framework and all tests to the ksft TAP interface. But, if we want to do that, then the question is whether we should start by partially using it for some tests, and then eventually switch over the framework, or whether we should try to switch everything at once. I think I prefer the latter, because without changing the framework we can't provide full TAP anyway as TEST_ASSERT exits with 254 instead of 1 for a fail-exit and it doesn't output a final TAP test summary either. All that said, this patch doesn't make the current situation worse and it may help inspire the grand conversion, so Reviewed-by: Andrew Jones Thanks, drew