Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp545119pxv; Thu, 15 Jul 2021 09:56:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN1yidgYz4kbfJOyOaI+b33MX9ILH97+MbB2YLIRN0r3pthlADoDi3q9j9bbcwJf9DcODI X-Received: by 2002:aa7:d809:: with SMTP id v9mr8505079edq.146.1626368181596; Thu, 15 Jul 2021 09:56:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626368181; cv=none; d=google.com; s=arc-20160816; b=jrvptk9l+eFYzo0YJG5iSgNRcJ/ETPcYynq+E0jKcSVUCxKk4gxR6SR/BXoyVwgUkK zS4jOZu8MPBE63VXhBVCSeztb367vBh/iTk+R4ALTViV6AtqX/sIEVMgu6g8RJzE4+b6 68tGryF29OqlY04Gt/ktaaG4deXeutlnVjNQLs9GTdxCEpH+hb0iMoj9MTZlm8T5lVsz GQ9KmV3+IEAycxBXOQtwpV9pBwFkaBvW/BJzQhoVqhBgeQzT1N/Gv5X0c2qsEwougcze hlK1a6go+FgKepWcMLUgVMP8Ekfj0VWHV5cr1Xq2luecYSBJtBlhpxl0/Yyj4AhLq4zc 39EQ== 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=QAfALqs51WvThC5Hz7W9r8szif6l/jmmKFnr+uD8jrY=; b=t/P6CjygoelmW1Y/db6mR4I6lpsTrGa9nCc6BxeCaabPnRnvcXruIZRKpFsmEz6CQi FZgMcq9ymYVxQYSpFOS+FU7sFfL4f8j8QhcqOiXlb+249nkMvBfTf34OXUIAjJGQw+rD 57biEVB02zCMZeRdL/32t1TUzALUpkVhjJTuC24Qqm8UWzA43BgkLE8caHGfjirpJPt9 ntuNT24LxBIMDNxOSd5QlZmqQcroqJLJdJKSPhQpUfJQVoMDaAO+2oIy+yhw9T1sMWG4 ysGpIXj6XZfoPYTNEXuGavg+fOOr1R9wJk9m240vUID3FGMGV0JWI1P+MsoG5xZMrI1I g4jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=bBIe3Tnv; 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 h19si7735572edw.540.2021.07.15.09.55.58; Thu, 15 Jul 2021 09:56:21 -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=@google.com header.s=20161025 header.b=bBIe3Tnv; 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 S229556AbhGOQMd (ORCPT + 99 others); Thu, 15 Jul 2021 12:12:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbhGOQMd (ORCPT ); Thu, 15 Jul 2021 12:12:33 -0400 Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BA1EC061760 for ; Thu, 15 Jul 2021 09:09:40 -0700 (PDT) Received: by mail-io1-xd2d.google.com with SMTP id d9so7078106ioo.2 for ; Thu, 15 Jul 2021 09:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QAfALqs51WvThC5Hz7W9r8szif6l/jmmKFnr+uD8jrY=; b=bBIe3Tnv4rMT9xetAaOr9rGjv5VSSCeKssmFD1rCDDsH31qhlwLDrv1ThRHNLdkaN0 0HflA1YmprSlqcD2TWBPdhYq65rw+oeRg1Z2KzX4N/bTnc5AdQIFPkoLAwtFalfYv6Ij HPb5Ye8CKZPD7VpK4bi5JyC0CTq0FGMkQppdpN9TtGu5PgNZXTJDQrU+nSNc3TLop1pa UHreTFguEhpKAxHeNggVfhnb2VmD3HTxdfikhuN2u9W1vlv7Btn0iegwUvz7M5QLDHm0 4OO/8R3jdPmz+izbhVbOsoGGxlEZludONqhUUvbBg0482ucyGIioA2oU06iiOPuacKMo BvWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QAfALqs51WvThC5Hz7W9r8szif6l/jmmKFnr+uD8jrY=; b=VEic5hZ67WNrhUlEJNi6QBF4Tdx8x4q5tvqMOGczTppacPl+UkiqFZ7g/c2HJ6H6PY wm1X4ttIqtZzueSHFStscbDt/3OMQ4roi9rp5piKaDwZIMiRniPGOOBiLm6Dtpkz64wY zG9T6qRdXdjCJDUw1zGE9WFNwi/vX0HdPi6joH0ZQC2VcIns0gwakpSP2AgUzq6cJgMH L6SMZLSSySDCqmWAaiCL+tUTYKv2+GYGW3kB4ljYMDxrHSJ/bcu+TeLWVWg6RHZ2WMZo CHhyD6gYOEpyvk1NbrjfN/htFsVP/VhuqohCA7q8wpu17+OXUNpXRhD/B5cTf0hdlBIp Ucng== X-Gm-Message-State: AOAM532sEZRTuj9sWvlobcuIMxabwZ2LQ94rqMq91WDiXRxLkjbVYILL j/vAilqOq/pJBzbKZj3yJBE4iA9LVPoCy8HqkeV2Dw== X-Received: by 2002:a05:6602:3342:: with SMTP id c2mr3586974ioz.126.1626365379421; Thu, 15 Jul 2021 09:09:39 -0700 (PDT) MIME-Version: 1.0 References: <20210714231506.886386-1-dlatypov@google.com> In-Reply-To: From: Daniel Latypov Date: Thu, 15 Jul 2021 09:09:27 -0700 Message-ID: Subject: Re: [PATCH v2] kunit: tool: add --kernel_args to allow setting module params To: David Gow Cc: Brendan Higgins , 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, Jul 14, 2021 at 11:14 PM David Gow wrote: > > On Thu, Jul 15, 2021 at 7:15 AM Daniel Latypov wrote: > > > > kunit.py currently does not make it possible for users to specify module > > parameters (/kernel arguments more generally) unless one directly tweaks > > the kunit.py code itself. > > > > This hasn't mattered much so far, but this would make it easier to port > > existing tests that expose module parameters over to KUnit and/or let > > current KUnit tests take advantage of them. > > > > Tested using an kunit internal parameter: > > $ ./tools/testing/kunit/kunit.py run --kunitconfig=lib/kunit \ > > --kernel_args=kunit.filter_glob=kunit_status > > ... > > Testing complete. 2 tests run. 0 failed. 0 crashed. 0 skipped. > > > > Signed-off-by: Daniel Latypov > > Thanks! This is probably overdue: while I still think we want to avoid > this being necessary for most uses, it definitely was a gap in > kunit_tool functionality. > > I tested this and it worked fine, but did cause several of the > kunit_tool_tests to fail, largely due to there being changes to the > arguments of run_kernel(). Those should just require the associated > tests to be updated. Oops, completely forgot about kunit_tool_test.py. Sent out a v3. I also went and added a test case to make sure the flag can be repeated and gets plumbed through properly. > > -- David