Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1609196ybl; Tue, 3 Dec 2019 09:46:26 -0800 (PST) X-Google-Smtp-Source: APXvYqyGvojlh3QkWok4CnDfgA+EFF/7oz+BbQf5QrLpHLwFHY0K+teeTPRQvymVS5x2mnq9QzQY X-Received: by 2002:aca:55d8:: with SMTP id j207mr4424343oib.31.1575395186508; Tue, 03 Dec 2019 09:46:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575395186; cv=none; d=google.com; s=arc-20160816; b=QHa/71n2AH5EGXqwIaCNUX813CcWddBM7LN2+SRo2ByfhG7gN9uemDjKgM0Lv7uAEe fhumab5+h18yrUa7pyfU+/YXtZtjUQhlYiXZiLw063rQ34yts71eD4Xzz62q4pfYgvFl Hr/Yn4dBw8f9zukFiZxFnXunI9OZwe4iRnvUUya7eC4DhwGt/UNkj4VVinTRd+DUO1eL OXqCBxweI8d9SJLh6yeasN2aLiWwg7gyavz+9pGCOIYjAsOCQf6LRzVctdaRPh2gdp0K Yt4PmD7q6x3c6nn2k4aQBJ9PnMAysfjh4lsq/5pIRAbvXRvCbai0xZYRpHeiMi+MRKB0 bh1g== 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=z7N6iQZ6w+KnK1x580YAK+IgWlbj+L7z26/RNYAhP3E=; b=gOvg1fObokl/BuzNTHggqGK2jqz5p10DvM+O7gKpx9h1AM9y+MI3XAlnXTRk+o/uJX 5/pKm3Y1p+gfbyWtku791Yr5o80g+4QEFPNErf6FKSTvkhfmyq4n6jW0Ar5Y3bafMYS7 5FOqq2A8FfsXbpB7SvjQtc1nYAHVn2HNwyKgXBgzouxRrjwL6Hgi+oPm+wvlwZzFqlUh pQqAJPD7iP4MRujGFbCRqnw0vEBY7I/ZWfG9c3eQRfQmzl794f/tprzoaJ4Vm1iaskgX yx5yft1+B9VgPjKw9n3bOxiRglmB0FElTiCyEAQ4q+vrwuQc9X70jJEm0CBKC02L29dq 6qTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QpxjuqLN; 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 s15si1622017oij.64.2019.12.03.09.46.13; Tue, 03 Dec 2019 09:46:26 -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=QpxjuqLN; 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 S1726628AbfLCRpo (ORCPT + 99 others); Tue, 3 Dec 2019 12:45:44 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:43484 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726486AbfLCRpo (ORCPT ); Tue, 3 Dec 2019 12:45:44 -0500 Received: by mail-pj1-f67.google.com with SMTP id g4so1789347pjs.10 for ; Tue, 03 Dec 2019 09:45:43 -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=z7N6iQZ6w+KnK1x580YAK+IgWlbj+L7z26/RNYAhP3E=; b=QpxjuqLNn8DPHEmW8Mne7bHFbkHFrWcadhd3+9wt8gWJJIslzBTmim1TD5pOW0dvaA bC76EQ7govwprkNb75aGyD6KHY8ymXR5N5w6Caa7L8wSLQ8o6YSIh5c8qGyJKwLNR5rV 6tCVzWrx/V9AD8Wf/hpe4/4M2sZYDEa5fP87n24haNU0l1cBwtmastId7QhfBbfz8tpB nWWGDUBjCE44/t64p3fJ3FPUQNbKUKjxqw+zdrcFFOL8bd+Lh7WxRAF0+EazzRUNLgF8 4eSmnS+upC3AWrGrfZYAOw40jtAJYKZ0evSwDw4C01BQqyVmi2IWQBkkHsc/FPsTTzL+ PB5Q== 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=z7N6iQZ6w+KnK1x580YAK+IgWlbj+L7z26/RNYAhP3E=; b=HvNHhqAqoVoGtrW74W0Q3otMTsErgPLxzfFbrwuSBHaPzetv4/pY6uk3OSvUnnxfvA 8xVRCDisvD6FaeovLELYhvdjcYc2CmW8XqD5H1q39M+0vOJVVNKzHgE7LUBtS/qBsxep 3oi5s5wfjnVpqI4x7KYS5SyJ8yvBF4nrfAL5k7rHGfPIgGztJhW04N0y5YO5pOv/H7AT GAp5YUW+y8l7dwcUKm470uOOucbSqeCBN1DT5ZvraoEvGFGk1Ac6+CE1Zb/HA8jVnwNi PElvtYyHB5haerQoUMGPgPxxpyxSSEeDy++668ACoIT0IODOK+lzoMX+JxLye8wq7Sxy Iy1w== X-Gm-Message-State: APjAAAWitpI/zGTC3yXDWRAWREoG+B/+FKse7AdzinX/E6mHIpqcfdfn qEY0/LF0c3bdGhLerstya3cKEjGrtfsHOL9QdDVOvA== X-Received: by 2002:a17:90a:ff12:: with SMTP id ce18mr4019224pjb.117.1575395143149; Tue, 03 Dec 2019 09:45:43 -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: Brendan Higgins Date: Tue, 3 Dec 2019 09:45:31 -0800 Message-ID: Subject: Re: [PATCH 0/6] Fix nits in the kunit To: SeongJae Park 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 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. > 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!