Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1050847ybl; Tue, 3 Dec 2019 00:28:46 -0800 (PST) X-Google-Smtp-Source: APXvYqyej/wjs5Gq+7doPEsaKU8GyO8JUtRbRdQaGulfbSj56DoC5cqgsyZ4fuzawtKM0AgpsL92 X-Received: by 2002:aca:6144:: with SMTP id v65mr2550621oib.150.1575361726445; Tue, 03 Dec 2019 00:28:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575361726; cv=none; d=google.com; s=arc-20160816; b=x75AKdeaYuTYSEKb2ylEvSYyUWHylFSmRxZcMyHN5UwREkqrjlN7qkxzzFeBmtxTfn +WUTWrkPtY9XVGEsqpsnUVSOVNzlmfb4tTHkzVYnMSzu5yTN631tiP+4r3bSJ7cbe45I CJ16zy2S55UxmPro4Unrzh/9ZYo6g0gIcdsRZ3Zm/CuWs+shAGBlfteyiaMO3NJ+ok6X x05vfdXfX9ijzZiaC/SLOoGdkSOSuDZBS+qskBJpk1MQc7P5mTCQlcBUpNbFDFSlXW9+ ZWAQv2wKgP4pKS19Y5bxRqexX/AR4JrRNpLIIV0kVgAjhaaCY2O1/nxw6gWx5r3lcbj8 1Zmw== 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=yVm6GRi8n03b9iXhiD9Ig4lQ+aGyXrPKPapCPEE2QD4=; b=K9zIHtL29fiBqw3+qs3hRV8XeKuDU+MxfofFBkfw1f74BmYDJghLnHuk2bMaenbeYb nxUqiLUnpnZ/nk4VMkvLrgTiRIziYWpCJ/j1v+xzhpLPwp0zC4xfMDQJNsRVGRbrFHSI Lq+fstvgeHOkJIRP0inhAkD+yxsxCkz13EX7PUOC0xjktKE7EW8Nqq1jddzIlMe4vQgt o+libDKlz4C0go5vHbi7fVRNf+vKS6uh7DJglwE4eFSsqChG+ezFqMnyC61MacEHxFOT 59CSYWq+GVWXrQuHljiKa4vKWnO1iLUOPnnkCTQLSqBrv/EMCY7MjiXGCbhbZtsuwpH0 RSHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gI26hrCG; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2si864280otk.66.2019.12.03.00.28.34; Tue, 03 Dec 2019 00:28:46 -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=@gmail.com header.s=20161025 header.b=gI26hrCG; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726060AbfLCI1q (ORCPT + 99 others); Tue, 3 Dec 2019 03:27:46 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:46633 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbfLCI1q (ORCPT ); Tue, 3 Dec 2019 03:27:46 -0500 Received: by mail-lj1-f195.google.com with SMTP id z17so2696110ljk.13; Tue, 03 Dec 2019 00:27:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yVm6GRi8n03b9iXhiD9Ig4lQ+aGyXrPKPapCPEE2QD4=; b=gI26hrCGzMnZRsvS33C3KFeqDZnEAl8ozvgYPYTww0fs5diQhDmHdU8Ai+WjAunj95 96UgqI3gZJtVz6zHkrY77AZLRz207UwLJl7qBz3BW1BlA7c4VVA5WNTnhXqwZQ0/2OPr aC4sPxs+TNk29bYOp7QD3myy/K+7UZTqekG3W8Qb1vdBC5NUpaA1hd3TcUUEXEUNe05R yCNMQHXpdK3RumbdbEUTAxtrleCch3pAqTDBGvlZ+AU/hfYDLCCdKX9OTSJRQuaj4c8y +8JEsTFGkJ6DambeOg/iWgdkC8YnfkDh1Kjv++SeC64crblvILPqTeHI9UlctJUYNrsN R9aQ== 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=yVm6GRi8n03b9iXhiD9Ig4lQ+aGyXrPKPapCPEE2QD4=; b=PoWnnGWoasy4rIqNBOSUEYoh/d3fvIQoJKhiEOxEt6JNJZLsvKBeURanjvXNa+RDGs cbRov3LCB4slvoqWFggTIZ43K5Ir3cJZA8lSis5u9kcJcJXnUcv3rAqF/0AKFB6PD6tv ZihRXPGVEYWBiFKILyVdHjgBQ7SYZajlNoJaM3vBLABEbaKjEs6+ANcGULBW+96Nd7Fq 9ZzgyGntuOJkEunLDmDbPjjuiJjFhwzVDiZDkQQgSCcywpUS+AgMYLgYQYtwy9ys5Ruf ssAJOSpIZUd9KzKe3/H1Jdmkd9ZIlTHamh8/W7gp/r1xS2x9Os5pHvEYG/3nJjj0smNf mVNg== X-Gm-Message-State: APjAAAVzLdRR1AJvUPZ/vyIFEieNni4RyY6lyUVXzgv2/0gJoObxhYaQ nViQ7pjfom7qKYDWHjfjHVrbsqfgEOQ+qBbIphk= X-Received: by 2002:a05:651c:102c:: with SMTP id w12mr1763936ljm.53.1575361663976; Tue, 03 Dec 2019 00:27:43 -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: From: SeongJae Park Date: Tue, 3 Dec 2019 09:27:16 +0100 Message-ID: Subject: Re: [PATCH 2/6] docs/kunit/start: Skip wrapper run command To: Brendan Higgins Cc: David Gow , 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 On Mon, Dec 2, 2019 at 9:59 PM SeongJae Park wrote: > > On Mon, Dec 2, 2019 at 6:25 PM Brendan Higgins > wrote: > > > > +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? > > I totally agree your way :) For the reason, I removed this patch from the second version patchset[1]. [1] https://lore.kernel.org/linux-doc/1575361141-6806-1-git-send-email-sj38.park@gmail.com/ Thanks, SeongJae Park > > > Thanks, > SeongJae Park > > > > > > The Python script is a thin wrapper around Kbuild as such, it needs to be > > > -- > > > 2.7.4 > > >