Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp431662ybl; Mon, 2 Dec 2019 13:00:21 -0800 (PST) X-Google-Smtp-Source: APXvYqwxUqZv/7k3GrPPw52mh532RvQUv4nfIFd2Fj3OPggF827eb+DayT5MV8W6JOplhOiCN1f3 X-Received: by 2002:aca:f1d4:: with SMTP id p203mr862441oih.116.1575320421299; Mon, 02 Dec 2019 13:00:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575320421; cv=none; d=google.com; s=arc-20160816; b=vQBimEWX50/3A7sSPvfqzvBCoFOoxENm5ETK8ws9x6mwFtcbx/VrdH+BLALTzhQr42 C3ARh+4ZM61LsKMnTnZ3ky/ybwxllivrR9JSfF2pP1CM6FCxXzy3zUHdZYtzllkG1P4O cy3WaUp3OA6nq7hG3/FwWZ58h4HwikzbirU2ANcqAeWYWIlkGhx0TfJAk76Ta9B79uAd WSuUDBYnjhfKloG5uEhOH+1G5kgtl4ZcRJR3JJX9qZPknctZYU6oQLz9jVLEHNxJk7rd lBOpxBzsTtlaKaY0C/bniWlUTnU3IvmQRMwK1/g0ACRZewoGTTMzFBUQ+wGATSntbxZB ZQ+Q== 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=JUXiWknTlgHQc/VaEzGlCuw+4pkNPjt8eB0ftM9tvIU=; b=mneALV67KeQRpFnFCQlmEHby3hUZK9irv2j9Aa1tibHtw69ji7f+74Az0wpe5SvOEp P3U4wVomQgJ4u+3WxO5biS4hurj07MzOhQZBAO+GjN+ON4WCuiDZd+ALveQ1+v/hKL4z aW98PyIqC06Ti1o+/hVejxtHg1oJYwOPtibtShiz8zTWmn60VW7N7m8aL0HoQe7Faqw+ Guae5WHNXz+72lmkNpsU/hoTda2gPhH1JywyDGCE62BbIqD8Sl98/WjZc/ZX/2uJZipg GfaWsxy72YPPtJIlAtNZmiq9eQr+0gAlO4gS3PRhqYSIYpz1pQxd8aHQGQcXkZnY5JHp PNuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mRGYhaCM; 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 o128si217190oia.72.2019.12.02.13.00.07; Mon, 02 Dec 2019 13:00:21 -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=mRGYhaCM; 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 S1725903AbfLBU7i (ORCPT + 99 others); Mon, 2 Dec 2019 15:59:38 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:39549 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbfLBU7i (ORCPT ); Mon, 2 Dec 2019 15:59:38 -0500 Received: by mail-lf1-f65.google.com with SMTP id q6so984177lfb.6; Mon, 02 Dec 2019 12:59:36 -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=JUXiWknTlgHQc/VaEzGlCuw+4pkNPjt8eB0ftM9tvIU=; b=mRGYhaCMvw/bQIYeE9dRvVxkVHCdIX+8fSv5bgHuSCqVfAd7oOInH+ajqTZQEUVAgo iiVBLkfbrukmcfASqZMfF7ZzpVIiMDZin+Rz5UcKAgKEDcBFWOEI4KwBQzxQOOhkPQmp MwFyZ1J+fYX6+zxHnnGE+aB+2fAPWoJOSujzxhS/a1URFcSyh75zw8lc0WSEHWTnD/yY 4qYBNO1VCJR2F7eKxLt2tOUIzTUDXmWbP7NtMNewcHCP8kE1SNhRmzhF2/YzIOcJuYDQ pHlcJndQpgsBz+UWEEOnn1sZxM8rolI25vV4xp3Ll1rzo1QYeW5BoLmlByyv/KbAqTDK 9fuA== 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=JUXiWknTlgHQc/VaEzGlCuw+4pkNPjt8eB0ftM9tvIU=; b=UKOSljDRDn05Kt6a+d+L3weXDtmrz6Sshar34O3Ran7OS1d6CIiNYyywRIB0nF1jaa UwpBk+a3+WRFTlyhdn99//Vgd6ZzCh8AtB2T+vkTByMglY/fhLwQSWGLb3uFKQttHy0v OS6YzHM3eRaVIhJhw/i82NqC/PAzEUOCo8CNlmxKR8goFtlbcHtf1ZqYP/kl+m3979e7 9JzDKSGnqFWWmNxbz9JG8BFM2LXNwCGAIC/Nh414W1TC+diR+Wv47PE6NdIM9KEGbCHE L59924lGaF2ttAnsumwDfDqz0Mjr+DdxH/d+MZNrwWI6xg24bqhwKBNf2pTUbrMxn/Ay dfFQ== X-Gm-Message-State: APjAAAX25y2OfgsEWYQiuopUrmY/rjX/HnJEUkNe06N2UJ54B4OiEsjV xtmN7wLT2BAwJePyt9WLFWc2UZDmo8f5ofmCPQM= X-Received: by 2002:ac2:5216:: with SMTP id a22mr626019lfl.18.1575320375964; Mon, 02 Dec 2019 12:59:35 -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: Mon, 2 Dec 2019 21:59:09 +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 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 :) Thanks, SeongJae Park > > > The Python script is a thin wrapper around Kbuild as such, it needs to be > > -- > > 2.7.4 > >