Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp198061ybl; Mon, 2 Dec 2019 09:27:34 -0800 (PST) X-Google-Smtp-Source: APXvYqwV6/sG9CEyJakzJfvFy4+ubvmsT51PJR33z35WYxxNglB2bLRqF0zagRHooPZpKBGyQan0 X-Received: by 2002:a7b:cb46:: with SMTP id v6mr13429363wmj.117.1575307654666; Mon, 02 Dec 2019 09:27:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575307654; cv=none; d=google.com; s=arc-20160816; b=qll+4IHGrwfINFB1dY7q+0t2LxMN8xdJLK84NbkN+a0kYcxu9SfCaBy9K1o3yBJ8kS Aa/preiSvZJzGd1xgUZVsPMGpaIPE/iXFRGbeMwVthwRqd2/bMPAIbbT7KzlTXraC2Bz /rOTHcgYNlQ49fQUHu9pgz0suHOKJ9rX5O3u7QwzXw/FQqot5HOzuyoC3avXBFAkWrN/ y92f43bmiICRSyH1A/ICf7vHpaL0TS511xhiyuUcHk/AG+ASzUwGPwFjXEL7tXLj2ILd w2QCMbSX07TRT8bqa7VSMbpjmyrK7JXPhE8/GNryc8v+c2Nx+kQ86tn5vwyW7RxIpbvL 1AgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=QJkfeNUtZsUM1SriZ4NkOu1VRRZp6DXE5Ca/oup1eY0=; b=BIkdvTg165TqtIQijwEsumRXpAzZYeq0gEagnF40hnt15T9og3IY5kx7TQPjChdFba 50rdzWl1q+BOS1cjWltEAFJ5tY4sPCwuk9BFIMRjTmVH+WWPejvoyJ0YnRNC56KyVuBw 8ii12DV5fuZxU+m7NxElr/0PRHLDuYmhsi17hHGoWkez0ku6DTkYGdzwsr2F9pBoXQMl RmL5iuNfd81z/EmkCYwbthIIHZYRFRt7QTRGUiyRJ8K9TgqdoRwWddchpVazwe1PsTwb 2Em0J6jcwv+tDtHqOfuemLDLMmAivaa0b4MUMHHjcIJAYivHeii4nbOxkZ07YbjJsnpH 05pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=OkT0pATS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id g7si34876ejr.267.2019.12.02.09.27.08; Mon, 02 Dec 2019 09:27:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=OkT0pATS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727702AbfLBRZv (ORCPT + 99 others); Mon, 2 Dec 2019 12:25:51 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43787 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727542AbfLBRZv (ORCPT ); Mon, 2 Dec 2019 12:25:51 -0500 Received: by mail-pf1-f196.google.com with SMTP id h14so8577224pfe.10 for ; Mon, 02 Dec 2019 09:25:50 -0800 (PST) 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=QJkfeNUtZsUM1SriZ4NkOu1VRRZp6DXE5Ca/oup1eY0=; b=OkT0pATSCD09KhjE0j2gmub4yYFjggeSCEDGGvJRy3S41QTVkCSh8xwimUhMdMZb9c YujkvAxV8pa4f0EZH0s21gVwuSe6g/btLrsuyVX3i5JOTcGQSdNOAMcyRSDd3t5i404n WpIK1uw847md8b8LtcOKJ8/u6Wyq9QJD+3DBsup2ZkoPnGM89ExC9cFaVHe3pohsGdlv IctyftfHniR6t8oxq3n8RP++aJQhCUxr0uzN5fqRymt39FrYs3jIs3okKnTzay7FBi6g tLhRuQOVVIM+TdDGHZsOTABM2SdXJqQAaPqY6dTjTN/zzrN/r7UheQRVQo73q30Dx5sZ MDnQ== 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=QJkfeNUtZsUM1SriZ4NkOu1VRRZp6DXE5Ca/oup1eY0=; b=sqsctXJmTmyDiQxvyFB2DAs7ypLYe5KupJ2ao5QRaplq4yVmZNkGR1JNF09ZYyN3A6 YDckSfkTsfjiGUSddLbeKZ3l1ZBlZkT74SbHxEq1Wiv4je10Kz7B4QAPyMM/vVCsPC7T LQ4Bea1rsocL5O/cSNb4Y4C8FkzQj8F30n31BNbOUiodlSSsiIrYgYh+AuvZnEXsdZ5D tzelOdY/T+vl/t3iHPg5mJjXYQ44WhEE7hI28erhu3ecE7tb4oo1c/cVs5ke6xM6T9FI uRzj1OWLBJ4VjkaMKmIBNuIpWwFO3phEF+ecgEJKpDVUtuV2aZkYSK0F6tkadC+oLNkA 6C2w== X-Gm-Message-State: APjAAAVeRlCj44AxQhWFjpCSS51an+Seyt+yTT8WgTup7YXssIlPjeRL v0WXY+6ge2/OlHf/30/qaBeC325gfYio+ehN8T7Pag== X-Received: by 2002:a62:7b46:: with SMTP id w67mr26208051pfc.113.1575307550038; Mon, 02 Dec 2019 09:25:50 -0800 (PST) MIME-Version: 1.0 References: <1575242724-4937-1-git-send-email-sj38.park@gmail.com> <1575242724-4937-3-git-send-email-sj38.park@gmail.com> In-Reply-To: <1575242724-4937-3-git-send-email-sj38.park@gmail.com> From: Brendan Higgins Date: Mon, 2 Dec 2019 09:25:41 -0800 Message-ID: Subject: Re: [PATCH 2/6] docs/kunit/start: Skip wrapper run command To: SeongJae Park , David Gow Cc: shuah , Jonathan Corbet , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , "open list:DOCUMENTATION" , Linux Kernel Mailing List , SeongJae Park Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +David Gow - David has lots of good opinions on our documentation. On Sun, Dec 1, 2019 at 3:25 PM SeongJae Park wrote: > > From: SeongJae Park > > The kunit 'Getting Started' document first shows the wrapper running > command. However, a new user who simply following the command might > encounter a failure like below: > > $ ./tools/testing/kunit/kunit.py run > Traceback (most recent call last): > File "./tools/testing/kunit/kunit.py", line 140, in > main(sys.argv[1:]) > File "./tools/testing/kunit/kunit.py", line 126, in main > linux = kunit_kernel.LinuxSourceTree() > File "/home/sjpark/linux/tools/testing/kunit/kunit_kernel.py", line 85, in __init__ > self._kconfig.read_from_file(KUNITCONFIG_PATH) > File "/home/sjpark/linux/tools/testing/kunit/kunit_config.py", line 65, in read_from_file > with open(path, 'r') as f: > FileNotFoundError: [Errno 2] No such file or directory: 'kunitconfig' > > Though the reason of the failure ('kunitconfig') is explained in its > next section, it would be better to reduce any failure that user might > encounter. This commit removes the example command for the reason. Seems reasonable. > Signed-off-by: SeongJae Park > --- > Documentation/dev-tools/kunit/start.rst | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/Documentation/dev-tools/kunit/start.rst b/Documentation/dev-tools/kunit/start.rst > index 78a0aed..e25978d 100644 > --- a/Documentation/dev-tools/kunit/start.rst > +++ b/Documentation/dev-tools/kunit/start.rst > @@ -15,12 +15,6 @@ Included with KUnit is a simple Python wrapper that helps format the output to > easily use and read KUnit output. It handles building and running the kernel, as > well as formatting the output. > > -The wrapper can be run with: > - > -.. code-block:: bash > - > - ./tools/testing/kunit/kunit.py run > - > Creating a kunitconfig > ====================== I think maybe we should demote this section so that this is a subsection under KUnit Wrapper. Might also want to add a tie-in explaining why we are talking about kunitconfig here? Right now this kind of reads as a non sequitur. Note: we have tried to address this potential issue for new users in this patch under review: https://patchwork.kernel.org/patch/11252953/ I don't feel strongly whether we do it your way or my way. What do other people think? > The Python script is a thin wrapper around Kbuild as such, it needs to be > -- > 2.7.4 >