Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1635891ybl; Tue, 3 Dec 2019 10:11:56 -0800 (PST) X-Google-Smtp-Source: APXvYqxAW0i5hhODJkJe0JimaUlxuRucAxkLOnyqGd64GPcl2QHnsv1Pd6zo5k9bJId/oBxTiPDl X-Received: by 2002:aca:2208:: with SMTP id b8mr4634953oic.76.1575396716843; Tue, 03 Dec 2019 10:11:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575396716; cv=none; d=google.com; s=arc-20160816; b=X20/Bc/8gtaVAaIQhxinb44qLqy4zOy5mPOFcW2G505TUtkCsbsQDDLkFF2nz+o1v3 z0h8gmrtw/XKxcg1CqdG1xKKMVyADFuItzn3hVTYBXzRbUgJmoJ2GNyghS8XyboJIaD6 DQw8fNYs4ItngheopAM22pED0OQYIRuX/uy3qMoOGVjjNii4oDzj+hb/zv3ZdgewF4Vy QFAWMx3ZKaTHVAuKews6EuzdvDhZ7wVf96MYKobV76erSoCK7TVhGJkgnvm3fxkQXt+h 8su2wV38qtZ1sMrJ9ephahJNmoEtD+nSOPvpma9/mogUIsS56SaSPsfDhH2GB6v7Xz7K 4oUA== 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=9g/Y/Bt40KbJDiW5JOJCnl3btsiJd4zL6Ayui/PxS9w=; b=AVixtE2T9vMzDPdBljgpHL1GhGJ3OWY7B6JeHMxVleLsy0I7HOyxpy5WxVSzeQmihj hSJczz5Ysnng/WlcklKN6ysDDkA0UleutTIX2F0X+281uyMJte6ZfH/1wLc1sR5JVrDj No2BAGsvL+s19fqO40qSTTOj0LOkaSxna6kBv3IycSFMZkq4yNHQ34UGYvDd5unP5X0p XO2w7R4pWQWBf31gQoHAnMIjWUQ6KjCwLQaNrQ5Vd1zy8WUKvnbDT95OpgbiX2IlaHpo reV22jzPFDobPLKbi/gQAiwjr5LdoDiuqTllgMhSQVX/lrQ4WMaKHRXwUi5x8V78ykT9 /plg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UfhJWpRk; 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 j24si1633425oij.157.2019.12.03.10.11.44; Tue, 03 Dec 2019 10:11:56 -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=UfhJWpRk; 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 S1727159AbfLCSLI (ORCPT + 99 others); Tue, 3 Dec 2019 13:11:08 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:43366 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbfLCSLI (ORCPT ); Tue, 3 Dec 2019 13:11:08 -0500 Received: by mail-lf1-f65.google.com with SMTP id 9so2295499lfq.10; Tue, 03 Dec 2019 10:11:06 -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=9g/Y/Bt40KbJDiW5JOJCnl3btsiJd4zL6Ayui/PxS9w=; b=UfhJWpRkr9o6OerC+nd7VlQE/uyYA7iUskCVoHhYzPbBGCZZs8/RkUA0Yy2g5vZIoR DZN4Ppim07wll+Egp+aWPIrF4DW101YwHwpGcPVbFSViq9ufGMdxiBpVqRmXHQqAJ/g2 0Wk775mVV48A4vG9NpcXMhzXwYO3bqAuDKXqVbzrlX1JEH9Xwk4Udz3Pm+h6hOHGgfs4 fBPPlA13r7G0vT4HJsuHK6Uahamvj4cdvEI7/8q7UAPfvVtEqgZSwkhNwlZpLbcCsM6k /0c77BOovYKJlyst/tbOLxj3lJinwGtftpAzueP1Rgu7YunQ7em3LdosAuRFm8NAE+tm EIpg== 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=9g/Y/Bt40KbJDiW5JOJCnl3btsiJd4zL6Ayui/PxS9w=; b=FP4EbhRWPztiedp0DIxeVPqoLHylXDoGW5iUorAbWiZw8JuFZKlLIOMxrpiCgc+g4Z 1qWS+A+oF7o7ZsZWZV385d6mb9dbYBY6+r7WjzQiBSuFJNh6YJt0iah2UxszdgkVX65S QSMlmhJ9KfgdkO31At54xAa+Ihk0q+WDFSBNyfl3Q2ipuMAI9znQkVOMM1PdJqf0vQ/I P1CnVW+VOGH4h9MSHZ+P1Ucy9gUR7VKM7VfXDb4ArIfZrv4//H1jppdG78iQv3WlFjUI vKZt2xXvwJnDFgxzcZoI2k5q5HXIvn93MYq/lavfjO1D+WZfO9kLWPath9UMdVAskOpj /Ocg== X-Gm-Message-State: APjAAAUmUssZLx+UfwdNIdUtzw3lTymwE9+RMEnml4VCejKSg4yVHU13 a6/kqRP36Gehpn6hkzlJLMQJhItSN3XQX1AdfV4= X-Received: by 2002:ac2:531b:: with SMTP id c27mr3421907lfh.91.1575396665854; Tue, 03 Dec 2019 10:11:05 -0800 (PST) MIME-Version: 1.0 References: <1575242724-4937-1-git-send-email-sj38.park@gmail.com> <20191203070025.GA4206@google.com> In-Reply-To: From: SeongJae Park Date: Tue, 3 Dec 2019 19:10:39 +0100 Message-ID: Subject: Re: [PATCH 0/6] Fix nits in the kunit To: Brendan Higgins Cc: Shuah Khan , Jonathan Corbet , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , linux-doc , LKML , 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 Tue, Dec 3, 2019 at 6:45 PM Brendan Higgins wrote: > > On Tue, Dec 3, 2019 at 12:26 AM SeongJae Park wrote: > > > > You're right, the error was due to the assumption of the existence of the > > build_dir. The "kunit: Create default config in '--build_dir'" patch made the > > bug. I fixed it in the second version patchset[1]. > > > > [1] https://lore.kernel.org/linux-doc/1575361141-6806-1-git-send-email-sj38.park@gmail.com/ > > After trying your new patches, I am still getting the > "FileNotFoundError" when the given build_dir has not been created. Sorry, apparently my mistake... Sent v3 fixing it: https://lore.kernel.org/linux-kselftest/1575396508-21480-1-git-send-email-sj38.park@gmail.com/T/#t Thanks, SeongJae Park > > > Thanks, > > SeongJae Park > > > > On Tue, Dec 3, 2019 at 8:10 AM SeongJae Park wrote: > > > > > > On Tue, Dec 3, 2019 at 8:00 AM Brendan Higgins > > > wrote: > > > > > > > > On Mon, Dec 02, 2019 at 08:25:18AM +0900, SeongJae Park wrote: > > > > > From: SeongJae Park > > > > > > > > > > This patchset contains trivial fixes for the kunit documentations and the > > > > > wrapper python scripts. > > > > > > > > > > SeongJae Park (6): > > > > > docs/kunit/start: Use in-tree 'kunit_defconfig' > > > > > docs/kunit/start: Skip wrapper run command > > > > > kunit: Remove duplicated defconfig creation > > > > > kunit: Create default config in 'build_dir' > > > > > kunit: Place 'test.log' under the 'build_dir' > > > > > kunit: Rename 'kunitconfig' to '.kunitconfig' > > > > > > > > > > Documentation/dev-tools/kunit/start.rst | 19 +++++-------------- > > > > > tools/testing/kunit/kunit.py | 10 ++++++---- > > > > > tools/testing/kunit/kunit_kernel.py | 6 +++--- > > > > > 3 files changed, 14 insertions(+), 21 deletions(-) > > > > > > > > I applied your patchset to torvalds/master, ran the command: > > > > > > > > tools/testing/kunit/kunit.py run --timeout=60 --jobs=8 --defconfig --build_dir=.kunit > > > > > > > > and got the error: > > > > > > > > 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 123, in main > > > > create_default_kunitconfig() > > > > File "tools/testing/kunit/kunit.py", line 36, in create_default_kunitconfig > > > > kunit_kernel.KUNITCONFIG_PATH) > > > > File "/usr/lib/python3.7/shutil.py", line 121, in copyfile > > > > with open(dst, 'wb') as fdst: > > > > FileNotFoundError: [Errno 2] No such file or directory: '.kunit/.kunitconfig' > > > > > > > > It seems that it expects the build_dir to already exist; however, I > > > > don't think this is clear from the error message. Would you mind > > > > addressing that here? > > > > > > Thank you for sharing this. I will take a look! > > > > > > > > > Thanks, > > > SeongJae Park > > > > > > > > Cheers!