Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp762291pxj; Fri, 11 Jun 2021 10:47:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeJ4aPQY9KecuW+etZcikVw/NmteHwump13zp9nLvD2EVpsQ2BaKzLg5AXWPCcOC3lmXYz X-Received: by 2002:a17:907:9620:: with SMTP id gb32mr4521778ejc.127.1623433644415; Fri, 11 Jun 2021 10:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623433644; cv=none; d=google.com; s=arc-20160816; b=bXC/W50KORS3saVHYE3VPyAUh+nOVB8YhpZEUk8U4ffnmL7D16n4XN3adSoiLjj2Dn NEas/APZMu96qSYLv4bnApGWJvIt7vtPMYqbZOAut3Twr1GW6FXub3JifRLRQeUlZ04+ /ZQ0cPW/afoZ5A4rj1B46oZ7KUgxJA5TJSNyx1Xr/+iGSMruDuZhKuEji0x2aAOAnQb6 Am1f4nYpPQh8nq648v9uvrdII8Zue7Ldb+4Hi2ifwd9Tt1vsgSiyxc/tqqh0WjDnPqcy UnWwMUJDTssxMEeRVoaARM1ohOvUV3YuHmYMlbnGviJLMVFmiU/y9uj+Zck+GpElMa0K 5ToA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=5ijyroFp+98lSqnS5hYLTzKlmPzT6WfBJO8AA2eOMqw=; b=bZ001dHwTgn+hP+VoWp9/RzgpmcLlnaw6pofTuqCF+YDM06K8tWt96sN8tNr5bU+po SRh7KqUsvyJprHpgLrdWt6wIdCMiRY6YaFfc/lrcS5kmChy4eO83Un6DE9LMorOgJjIw 6rUzKI+FW5tu2VRq+hMUE888P4/gca2jC3B/XULRFXsnt4BbJfVehzf1nxgcU5cPf40o qln8laCRn/AE/ARzGAG5IvcxjXxQeGKeDlLXDe2pTi4Z6tSFCEDU2b/v7NAxrEnVO90i iVHEkLTVJYRfpuEasrhqkaZHsHZu+NurEdrzaUP49h1/Bh8nq756wA9VziGHwZgRAZX1 p22g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=DUOyuwOi; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si6040548eji.655.2021.06.11.10.47.01; Fri, 11 Jun 2021 10:47:24 -0700 (PDT) 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=@linuxfoundation.org header.s=google header.b=DUOyuwOi; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230083AbhFKRrO (ORCPT + 99 others); Fri, 11 Jun 2021 13:47:14 -0400 Received: from mail-il1-f181.google.com ([209.85.166.181]:34801 "EHLO mail-il1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229792AbhFKRrN (ORCPT ); Fri, 11 Jun 2021 13:47:13 -0400 Received: by mail-il1-f181.google.com with SMTP id w14so5937798ilv.1 for ; Fri, 11 Jun 2021 10:45:03 -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=5ijyroFp+98lSqnS5hYLTzKlmPzT6WfBJO8AA2eOMqw=; b=DUOyuwOium8uOtGloLPa2VcJroQ4qNKS6RSmUljVcBADDdOJDaQA4UsAUkuLri5So7 OObRNDN3g3u7/a5IrNcLvhURtokaoaJG6OyXq9Vka12e4VW9wXuzkZT73oN6uf0KDbNd 58+lIcXKh8u1DT0StKzB+SvGKJ55Fr/Y004JQ= 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=5ijyroFp+98lSqnS5hYLTzKlmPzT6WfBJO8AA2eOMqw=; b=NzhlkI5YorUfTOLT8YP61o+0/G1ly49VhixSvh+sDc32d2m60/NHXX65otpKiWY5Xh R41/ax6VM++FNa/iJPkPp2LxsGicR1gd12jCZNjC5CSlCjBoRZc4vZVQ23+HaZFXhidU EBVVs40jEgJuqOhpYV6h6XxAFN60mn5zjG8cpVFx7P+y6TJt9hWO82cQ2SsKssMhjiG7 4dRZiAk/JNU6N8pE0Yf9R4+93jA13bcYuk6dLhYKIXY4Rz4ZAHGa/Pam/1b1PvPiDe0s znUnPTi4nGGlJX6FVJSq1Ne0GPQeL7NdQRgwigeVCR1k0y0FPzfywXKWbWaJsJtCReJ8 J7rQ== X-Gm-Message-State: AOAM531Ldu1hCtqKeNNrFUPAhFTludb7bZkIfoLF+u0UpzNXI5rKZdoE 1A9EhZxwN+HFRRE8SpN8NqZh4A== X-Received: by 2002:a92:c90d:: with SMTP id t13mr4163128ilp.172.1623433443190; Fri, 11 Jun 2021 10:44:03 -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 i139sm3524563ioa.20.2021.06.11.10.44.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Jun 2021 10:44:02 -0700 (PDT) Subject: Re: [PATCH] kunit: Fix result propagation for parameterised tests To: Marco Elver , David Gow , Brendan Higgins Cc: Arpitha Raghunandan <98.arpi@gmail.com>, KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , LKML , Shuah Khan References: <20210611035725.1248874-1-davidgow@google.com> From: Shuah Khan Message-ID: <8a7e6806-97f5-6f13-5e97-328cf0d3a95d@linuxfoundation.org> Date: Fri, 11 Jun 2021 11:44:01 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/11/21 2:29 AM, Marco Elver wrote: > On Fri, 11 Jun 2021 at 05:57, David Gow wrote: >> >> When one parameter of a parameterised test failed, its failure would be >> propagated to the overall test, but not to the suite result (unless it >> was the last parameter). >> >> This is because test_case->success was being reset to the test->success >> result after each parameter was used, so a failing test's result would >> be overwritten by a non-failing result. The overall test result was >> handled in a third variable, test_result, but this was disacarded after >> the status line was printed. >> >> Instead, just propagate the result after each parameter run. >> >> Signed-off-by: David Gow >> Fixes: fadb08e7c750 ("kunit: Support for Parameterized Testing") > > Reviewed-by: Marco Elver > > Would Cc: stable be appropriate? > > Thanks, > -- Marco > >> --- >> >> This is fixing quite a serious bug where some test suites would appear >> to succeed even if some of their component tests failed. It'd be nice to >> get this into kunit-fixes ASAP. >> Will apply this with cc stable. >> (This will require a rework of some of the skip tests work, for which >> I'll send out a new version soon.) >> Thanks for the heads up. I will wait for new version. thanks, -- Shuah