From mboxrd@z Thu Jan 1 00:00:00 1970 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=-6.7 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLACK, 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 07CECC433E0 for ; Wed, 10 Jun 2020 20:02:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D425C2074B for ; Wed, 10 Jun 2020 20:02:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591819360; bh=yglEJK0pwMFzghER1gyrVP5HUMll6Rq6p6yuAzi9TB0=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-ID:From; b=1+nHvybgGpZzD5UJd+7CmZ1CDNwQSsvxVQitdXgClU8wTTgrqydxpWX0OGIiQQTLm 3EdgS8wXFqtCRIv1Avhj0BkjMOsFCiNb5p4rbjw5Tad07RQ9xcKCzIypAjXONJjTV8 mKo6ulbsRBi4dZWeENN3LE03zl1lr97tgL+jiHgE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727819AbgFJUCk (ORCPT ); Wed, 10 Jun 2020 16:02:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727038AbgFJUCk (ORCPT ); Wed, 10 Jun 2020 16:02:40 -0400 Received: from mail-oo1-xc2c.google.com (mail-oo1-xc2c.google.com [IPv6:2607:f8b0:4864:20::c2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B83CC08C5C1 for ; Wed, 10 Jun 2020 13:02:40 -0700 (PDT) Received: by mail-oo1-xc2c.google.com with SMTP id x17so762626oog.6 for ; Wed, 10 Jun 2020 13:02:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=qZencQASJRki6VdoOxeOIlcGGGCewAGYJOEcSk5Dgfg=; b=XPCKVMMke8Jf+Pi0GeiBzPCLOfLL99hToskxvMW9JaU93d5m/VZrbXmZ+BJHO2KYD2 fd0PX66ZFMMUASpCcUTx+csortjmYseBTRm5zDvPp1sPEPWZlF5tFHPGZ+zKneKiMcbn w1WLGwVGRZWqrVddPQrdpY8vL3pEYAYieSbdk= 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=qZencQASJRki6VdoOxeOIlcGGGCewAGYJOEcSk5Dgfg=; b=Uv05X3+8xUKTGAx7d9vZH7b5uSzMu1yx4nR0WDnCrCUan0JC8JJc5E0pP7TNexnZyL tKmGrIVY5b9qvI4p1gRNzBjMSHFPbYbS2gCQXw6hXf5yD+pwoMa85E1xfJrVDvxAqTtj rXexMBey3p1Irez0xtMMr3OfjNgv461dLvIkVp6oM3aNiAq3NGETlgCAqG26aIZkix52 BBPgLMYon32RXi8rlBgnvCTFnP/uUsa9qRHF+YbHJ615zkT8g2iefxp8WT9KrObleRpB jEdklACn/lMqeT1wnowC3Oc08bcV6Qmowy53kBy0WdSeixJc6cf9NNHeGvju3CGlwCJ7 so8Q== X-Gm-Message-State: AOAM530PvHjdPeDuBg61Jl0wDukITFKrKsKbB7nFFp7Xeg2va27cguXh vtKgBJvkVvMRlVXbmZkcNStnMA== X-Google-Smtp-Source: ABdhPJx2LGg3UiOse93yQL2bCLbO3dMSH80eybn0HTimfQXaya+ujg9M8lnVVwZh1xpt3pxmPlsRUA== X-Received: by 2002:a4a:e836:: with SMTP id d22mr3907706ood.54.1591819359255; Wed, 10 Jun 2020 13:02:39 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id 10sm210430otq.52.2020.06.10.13.02.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Jun 2020 13:02:38 -0700 (PDT) Subject: Re: [PATCH] kselftest: runner: fix TAP output for skipped tests To: "Bird, Tim" , Paolo Bonzini , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" Cc: "shuah@kernel.org" , "linux-kselftest@vger.kernel.org" , Shuah Khan References: <20200610154447.15826-1-pbonzini@redhat.com> From: Shuah Khan Message-ID: Date: Wed, 10 Jun 2020 14:02:37 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org On 6/10/20 11:43 AM, Bird, Tim wrote: > > >> -----Original Message----- >> From: linux-kselftest-owner@vger.kernel.org On Behalf Of Shuah Khan >> >> On 6/10/20 9:44 AM, Paolo Bonzini wrote: >>> According to the TAP specification, a skipped test must be marked as "ok" >>> and annotated with the SKIP directive, for example >>> >>> ok 23 # skip Insufficient flogiston pressure. >>> (https://testanything.org/tap-specification.html) >>> >>> Fix the runner script to match this. >>> >>> Signed-off-by: Paolo Bonzini >>> --- >>> tools/testing/selftests/kselftest/runner.sh | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/tools/testing/selftests/kselftest/runner.sh b/tools/testing/selftests/kselftest/runner.sh >>> index 676b3a8b114d..f4815cbcd60f 100644 >>> --- a/tools/testing/selftests/kselftest/runner.sh >>> +++ b/tools/testing/selftests/kselftest/runner.sh >>> @@ -77,7 +77,7 @@ run_one() >>> echo "ok $test_num $TEST_HDR_MSG") || >>> (rc=$?; \ >>> if [ $rc -eq $skip_rc ]; then \ >>> - echo "not ok $test_num $TEST_HDR_MSG # SKIP" >>> + echo "ok $test_num $TEST_HDR_MSG # SKIP" > > This is a pretty big change, and might break upstream CIs that have come to > rely on kselftest's existing behavior. I know it's going to break Fuego's parsing > of results. > Thanks for chiming in. We don't want to break CI workflow. > kselftest has a few conventions that are different from the TAP spec, > and a few items it does that are extensions to the TAP spec. > IMHO, the TAP spec got this one wrong, but I could be convinced > otherwise. But I think we should discuss this among CI users of > kselftest before making the change. > > I started work quite a while ago on an effort to document the > conventions used by kselftest (particularly where it deviates > from the TAP spec), but never submitted it. > > I'm going to submit what I've got as an RFC now, for discussion, > even though it's not finished. I'll do that in a separate thread. > > >>> elif [ $rc -eq $timeout_rc ]; then \ >>> echo "#" >>> echo "not ok $test_num $TEST_HDR_MSG # TIMEOUT" >>> >> >> Thanks. I will pull this in for Linux 5.8-rc2 > Shuah - can you hold off on this until we discuss it? > Of course. Thanks for getting my attention before I pulled it in. thanks, -- Shuah