Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1049796ybl; Tue, 3 Dec 2019 00:27:13 -0800 (PST) X-Google-Smtp-Source: APXvYqwe4R1S9jptAUzbKP2MHfgIgnRPJ8AHtzkwUfzCh3vUsxu439lrd/Tixi+A5W8iqQEMqLFp X-Received: by 2002:a9d:12a3:: with SMTP id g32mr2399237otg.61.1575361633332; Tue, 03 Dec 2019 00:27:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575361633; cv=none; d=google.com; s=arc-20160816; b=CGMBlCsdJ4HBPxEyZ8EzbpJnkVx47Eocbmh5fnNOJZhIE6Y5O9793VN3ZHRZ4qt6Jq gSXJ0nLTLxVVpgs8jwnKoa9PzxWyHNeMMsk+MfqkkqHeehJ4hSrgFb3pgnkWyUe/mxyf g161a6IcLoVM5N2uLYDiSXHWr2ARTkOYnhkCpv437cL0xN6tczYfzRTEm3reYaU54R/7 HZVcqclMVb+/xKcirKe+swpcfUwy3pqAHWMZHvLiLgLT332aNnmR0owYWKg1TGNkk13x mS9uzn4cJR6bKa/1A6hwGy8Z2yI6hYBltMyMCdpj50AuddBOPCO8MYH1svb3L9INdT8e +P4w== 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=j8kDvKKiOlbnRIjKL76dToNxNX272P7IDgc+CwJbZiM=; b=K5ur6pbSYrBBF+hdXxaifQ3MsOuiypgfu5IvSZowrjCIsSb/Qv96eMRc97hho0ovAW 8CCUkVeYUxBMSof2dbNnNbUKTCthJtHRkU0EeHfe6LHffSjVtCzliH+hVt4SgLClntbv iT7O/1ENRv5dBvCWeIlKD95K98C7us5s1jl9xFzlIMTE2/GYkWbnqIQC817M+P3w9mfq abYVpGVEv5xcV0JlEQkOaTSmJbU4+VoVAE7rC8juQHL7m67mRzUjApE3i0+MD47qMNnA Bo6iVhUNAWVVzFebTTxrsHFaH1mayFs3HSLFl5axXkc8Mr2keldbvWFH3JgOwjNRyV/J uRhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=tU5W4ZkW; 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 q17si892833otg.180.2019.12.03.00.27.01; Tue, 03 Dec 2019 00:27:13 -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=tU5W4ZkW; 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 S1726114AbfLCI01 (ORCPT + 99 others); Tue, 3 Dec 2019 03:26:27 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:42230 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbfLCI00 (ORCPT ); Tue, 3 Dec 2019 03:26:26 -0500 Received: by mail-lf1-f65.google.com with SMTP id y19so2156979lfl.9; Tue, 03 Dec 2019 00:26:25 -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=j8kDvKKiOlbnRIjKL76dToNxNX272P7IDgc+CwJbZiM=; b=tU5W4ZkW1HPq3oAToFaAdfTwx4AFmZYjVT5SREKvqCsjKlcqQL+U6JFDkuze3xwVrt vLdKwAOYs8mevxiQEkCiKqOTI2agUCPu32sAsS0FUuVxGcv4OW8Y85yN59R1ai7wr55M Rhwh0yBPS5Msf70yWjhqHSxo0DbSEs4oZGrKlvJxN69i7LFCeEUWJi6GM2DkgkV0PawI Fu0wPi4rNg81sW/Xso9NQ7wVm59m+ktMyGf9UScdaFVjuz6THlx1aS0wcD0/c/1AXuLH wVFIxx4B5WWMRYQYZZQfJgszzZZmIGF2PEKg72rywRJB34N/3Lwr+RDzYZujwXpnK0+/ +dtg== 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=j8kDvKKiOlbnRIjKL76dToNxNX272P7IDgc+CwJbZiM=; b=lNKQQIFOW+ArVOXc1kq0Bglp+EqYuJlFpMFtlr8uTVl0eyXzPLld+d32IYuaQdDpiS L/fwiJ/kCM6FAv0N9IMEoET+BZuKbuHvDQd4lCOqyteU2+x/kDPcj6BYy5McFEDKp+SZ A3CEbpdCtr5KZXFk8pFIykBEKqYiTOWViqiRwqywlGqvV8MwIelCXRFfh9nuDfU6kiky /FyGZklV1XAr5IxGqUkfClYRmgLpOG/q4PIUReKdf9XVw37xYU7iu28GSlXmFhbVZK0x 9B/lnVYz73k692jy4rhAuDWq4KWqBOheGdqoFw0otgI/DnwMG2zReweauxI6IGa4WqpB KK2A== X-Gm-Message-State: APjAAAVvLVo+ZW9rNifTC/8VGjUFn2P+tYdNE/81GF9AxfnpyRtsHnz1 Knff4+0INaxPA5OfFF8XBiJeSPM4/amyi6sobYS8IZun X-Received: by 2002:ac2:4436:: with SMTP id w22mr1884577lfl.185.1575361584349; Tue, 03 Dec 2019 00:26:24 -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 09:25:57 +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 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/ 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!