Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp879477ybl; Wed, 4 Dec 2019 12:30:18 -0800 (PST) X-Google-Smtp-Source: APXvYqzQz7GZqyPNdbtNcxaTRQEwe4v8+t5VcON4AcWEaYw2ieSEOgb4en32HdtvRWVwWaojH4XW X-Received: by 2002:aca:5a45:: with SMTP id o66mr4332566oib.114.1575491418140; Wed, 04 Dec 2019 12:30:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575491418; cv=none; d=google.com; s=arc-20160816; b=jwC4fySyySMzclvIC4uYl0ZdcSNMKkWE7KdG2iMK2T3dYnol6C0w4bbuhzddmN/4CW 9BreR6aC8fkgZ+zCghT+OMyxxjl8o1e+e3pjxnv1juDmZXZ0cxA6QzeI0N1YXmMMHuuK 6lwZ2r3621sBE13McDwjUIBmuREyRSW1J+GRVk0acGv0msBO1chw5i9gnvBzpa7wecHl bdNudJzG3/FwzFODIGWsDyoKDFfTESim87RO35oSmATRHSOpQzVYN4f5Z9uATcHGjHuO iOwdYfqfiUgHfwEOh/erhecofQ6mXtdc20XIFayiMQR9hn71rTUaf/2M2zaHQaf+23E/ y1/w== 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=yKIotMcbTtZ0YF0R1baNTaDHjXcczPzr4JNxaUZOqXI=; b=DnbPgIg7MgC/ihEYhgRzNHk9gMpe+mB9ZNL6zuT4WzLVIXbC2O5jugl6hldyHvnAsq 2fhab8y9Fonj2LGB6V3pbfZGZWwmubexz9qV1+DUmdS4iKcFrVZsrOK55PeDXAXUFXag xSnCMhH2/YMLnbQ721agWo0kDp8VUWlBQBlJIbxk6ic7mcT2AwY1Es7IYwhBEykOVmpI LFdf8qQBiNpNDpAr0R2T2LCOuiR3Pb1HFnAK7FslOHckn1CK9ETLwNnzjsWQZI/GJBYM ZkzYZSCfmzf5xUZoTbPD33k/D9nhA5Kvh7dnopNV34EZ7HbCTCdN+gx8kB1MFmy9GY2C NurQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TpHatxGp; 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 v8si3930377otk.227.2019.12.04.12.30.05; Wed, 04 Dec 2019 12:30:18 -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=TpHatxGp; 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 S1728280AbfLDU2q (ORCPT + 99 others); Wed, 4 Dec 2019 15:28:46 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:39347 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727889AbfLDU2p (ORCPT ); Wed, 4 Dec 2019 15:28:45 -0500 Received: by mail-lj1-f195.google.com with SMTP id e10so802466ljj.6; Wed, 04 Dec 2019 12:28: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=yKIotMcbTtZ0YF0R1baNTaDHjXcczPzr4JNxaUZOqXI=; b=TpHatxGpHFgxmntTYTnhcSlRQr/SlNyCLneNOiOnh2ZNZ/144zFRAOLwoNXL5Kb0hS Ayb5xw7IWf1QfodVr/5Pz/3D/FFcEhqYITBKOTWN6kfzbTTWw9rIkVNJ+tfuKWLf8+fo 0CEVjcfbVaVhymc6g+cSG45QSsI2aIgL8Dn9b8xWkvlDZBZVcmS7Cnf5rwaK/pSFmK6K /Rjm/OAWENGDPDgdSWlGPPUDLo+XB+OV50RnpX2P9bhraxznSuM7pXgq2hLf3sF3U4JC hleJERGfWf737ApQDKYJa9PVnFXUF4FcmOee95qF9n08JW3KGXRnKpCCdDYwGQalfsnj oFHA== 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=yKIotMcbTtZ0YF0R1baNTaDHjXcczPzr4JNxaUZOqXI=; b=hYqjEtdoQC+i6/0QEcpma17BpbHWkSpxktKnaUS1ok3eGoChCC3UedWHF4kA78io5N A0W/Kcn8r2tQZeRfIveXM5iO2Zmy7Z8GI8VPiBx54GP/CAls8xLuM53C4XbFi5Cfxgo4 fzGp/Wx99gZ+Gg302F85Bxj+4dNFWlOTSUqxpIJh9rHNEfWFPdGkH5oy8JVHel+z+SHs +SocJKHs+PcFlYVSpED8OLfg4cjel6RZBCYx1bzK9pA4sAMoH5ffks+/lC/QgaeVskIp KMFq/O4o7BNsNmwzh2mJFhwbvkQdXR6UvK1goRAdPkKbABqP24SkoePy5jX4tAXLdqes 2Ivg== X-Gm-Message-State: APjAAAV5GyOs0gWzpen4DWWC5GRBFUPZzXwFNX8muny3FdyJAdmFOg1h rGM4r3Z47cE9HveYswltlr5Ok0/WU0tXcMoyOjjhiA== X-Received: by 2002:a2e:580c:: with SMTP id m12mr3187002ljb.150.1575491323333; Wed, 04 Dec 2019 12:28:43 -0800 (PST) MIME-Version: 1.0 References: <1575396508-21480-1-git-send-email-sj38.park@gmail.com> <20191204192141.GA247851@google.com> In-Reply-To: From: SeongJae Park Date: Wed, 4 Dec 2019 21:28:16 +0100 Message-ID: Subject: Re: [PATCH v3 0/5] Fix nits in the kunit To: Brendan Higgins Cc: Jonathan Corbet , KUnit Development , "open list:DOCUMENTATION" , Linux Kernel Mailing List , "open list:KERNEL SELFTEST FRAMEWORK" , shuah , 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 Wed, Dec 4, 2019 at 9:25 PM SeongJae Park wrote: > > On Wed, Dec 4, 2019 at 8:21 PM Brendan Higgins > wrote: > > > > On Tue, Dec 03, 2019 at 02:41:26PM -0800, Brendan Higgins wrote: > > > On Tue, Dec 3, 2019 at 10:08 AM SeongJae Park wrote: > > > > > > > > This patchset contains trivial fixes for the kunit documentations and the > > > > wrapper python scripts. > > > > > > > > Changes from v2 (https://lore.kernel.org/linux-kselftest/1575361141-6806-1-git-send-email-sj38.park@gmail.com/T/#t): > > > > - Make 'build_dir' if not exists (missed from v3 by mistake) > > > > > > > > SeongJae Park (5): > > > > docs/kunit/start: Use in-tree 'kunit_defconfig' > > > > 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 | 13 +++++-------- > > > > tools/testing/kunit/kunit.py | 16 ++++++++++------ > > > > tools/testing/kunit/kunit_kernel.py | 8 ++++---- > > > > 3 files changed, 19 insertions(+), 18 deletions(-) > > > > > > Tested-by: Brendan Higgins > > > > I just realized that I forgot to test for something... > > > > The following command fails: > > > > ./tools/testing/kunit/kunit.py run --timeout=60 --jobs=12 --defconfig > > > > [11:17:13] Building KUnit Kernel ... > > [11:17:16] Starting KUnit Kernel ... > > Traceback (most recent call last): > > File "tools/testing/kunit/kunit.py", line 142, in > > main(sys.argv[1:]) > > File "tools/testing/kunit/kunit.py", line 135, in main > > result = run_tests(linux, request) > > File "tools/testing/kunit/kunit.py", line 67, in run_tests > > test_result = kunit_parser.parse_run_tests(kunit_output) > > File "/usr/local/google/home/brendanhiggins/gbmc-linux/tools/testing/kunit/kunit_parser.py", line 283, in parse_run_tests > > test_result = parse_test_result(list(isolate_kunit_output(kernel_output))) > > File "/usr/local/google/home/brendanhiggins/gbmc-linux/tools/testing/kunit/kunit_parser.py", line 54, in isolate_kunit_output > > for line in kernel_output: > > File "/usr/local/google/home/brendanhiggins/gbmc-linux/tools/testing/kunit/kunit_kernel.py", line 146, in run_kernel > > with open(os.path.join(build_dir, 'test.log'), 'w') as f: > > File "/usr/lib/python3.7/posixpath.py", line 80, in join > > a = os.fspath(a) > > TypeError: expected str, bytes or os.PathLike object, not NoneType > > > > It seems as though you assume that build_dir is always populated by the flag. > > Sorry for not checking the case. The 4th patch, "kunit: Place 'test.log' under > the 'build_dir'" made the bug. I fixed the 4th patch and tested with below > commands: > > ./tools/testing/kunit/kunit.py run --timeout=60 --jobs=12 > --defconfig --build_dir .kunit > ./tools/testing/kunit/kunit.py run --timeout=60 --jobs=12 --defconfig > > Just sent the 4th version patchset including the fix: > http://lkml.kernel.org/r/1575490683-13015-1-git-send-email-sj38.park@gmail.com Also, removed the 'Reviewed-by' from the 4th patch and didn't add 'Tested-by' to the patchset. Thanks, SeongJae Park > > I will consider adding some tests that can check such cases in the > 'kunit_tools_test.py' later. > > > Thanks, > SeongJae Park