Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp842728ybl; Wed, 4 Dec 2019 11:50:28 -0800 (PST) X-Google-Smtp-Source: APXvYqyk+w72aqoD08i/SSWo4d1sPPyMRRT13h7/dU9VT05xnR9tVJW2+bQ1NXl+ehAwUYWSLZmT X-Received: by 2002:a54:4407:: with SMTP id k7mr4251194oiw.56.1575489028242; Wed, 04 Dec 2019 11:50:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575489028; cv=none; d=google.com; s=arc-20160816; b=iG998uJivn5iSTRlR0Wh4l0y+fnn1DL/enEe2CjNhvKD25SEgx0OWXgwzWe0SK4JNP 570NfkP13W1WXbQt/sZFb5vduArCrLSIUePgD6JCN9mxI4xdl39SXf1xlDzv1Nvkd36h UPtLIWzuMmL8T6PGzSwYs1/AHviNtNmG6XB/Qd2TMoKXU8epY8MHXPi7xaJpOJmEsHZt +jzg8D5pCYS65TwUtHw0oo7on5X6V4WhRKyIor6lltiJI1g/XjIaVSzOtpGrCM+lmC6U IfnqOLzCtmPTpUFEcUVIdzfebZG4Fy+gdBjO/vc4gk7wwNpjneCV3YYoki7HlkD4UCvz He2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DifXKFST8fxhtH1miSgvC52bAOjBe8VIhNBj9qhxAyA=; b=vfzmspMOFNzThZ03n5YHq2pphio142YV1fvoXu9U2UmIlk3Pr0TdflY0ZL204tkQYp CMIXPXpwwciAckSeZCY6yHkwhMwThLbeqwlefPCSs4ILuuIvySHGnkCMkyWmWVRLcqxp 2Lx9iFLTOk+s28SIlilgDoDK7JoKJQzsOnDSSww7OEbZB8sq5F2Ygydgru4zrO4OMeg7 9leDma4LDzsfDytqVdl/Y15uSoHBGKceGOlC8PqPYHRmaEfUSL2+doH0bD9jPs9BghXo EcECjzuNUCapr0tV2pl7SrD7EZA3cGnbP1sJsTcqJPx0pdKRjicVtwul4KZ0blmosceR nEfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=sU1JSfe4; 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 f9si3806646otp.111.2019.12.04.11.50.15; Wed, 04 Dec 2019 11:50:28 -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=sU1JSfe4; 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 S1728552AbfLDTVs (ORCPT + 99 others); Wed, 4 Dec 2019 14:21:48 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:36316 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728104AbfLDTVs (ORCPT ); Wed, 4 Dec 2019 14:21:48 -0500 Received: by mail-pl1-f196.google.com with SMTP id k20so133800pls.3 for ; Wed, 04 Dec 2019 11:21:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=DifXKFST8fxhtH1miSgvC52bAOjBe8VIhNBj9qhxAyA=; b=sU1JSfe4ZXwst2VoEwnLY7Bn8vP4W/Z+FQ/f/lMhs5J4jsLxhjmlClb6sBB0czSyDj bZq/f8/vp5J5uWt9wnL3GQATulx21R/VuZfUMK/nt8R1EFPM/R/Q/CEnGFlFx8j5CW2u YrdP2KKw69KAac+CV30xGf37n57hRmr3+UlrW449e25/4j0Pitz0JSHx3FE0ODZxOeIc KtDNBkYvykdZG3KijAeCgOmQ+jlU2xgTpvvLP99gjn248XyWBpKzH0nAxZxVLjQs9xmO WXVrckTUpB3wjAtKjsg1LYfiJjxTM9er7doXZYwpch+f77lhXyFLkIssEhBNrUHScIol 3q1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=DifXKFST8fxhtH1miSgvC52bAOjBe8VIhNBj9qhxAyA=; b=cACpBmZ4pmzobOCVivqQtIu22RIdHgnOgy/av7FeJYnkXYxbGG/X2zpIxzF+Azx5PI aDygAgy6Dh2blxTWLDJogxWZYSLGSpcPSm92Gk4PPPWEIcJbtRlEesgCtLCQNI6JUcGT s9hCFZuA7tbQ/u6laQswc1gZ96IDVVdWxnWq/eEWsjVhy5LBLfxlp5f6TJbfVhBt+IBW SjOko97XZ4zKJkQWKGwBbhJreaTDy7HadtuB7tRDLiliCSlXBnBXyqSOOlrslfIhQymu LgZjlov5UwFDXuHZcLnRt0uAKF8q/ddi0qth4d3M91cIIt8UfoUof3RCO5hKTstfJ0n6 Uprw== X-Gm-Message-State: APjAAAWj45u9ozHgO6fbN3G5uikthVCeAzSNOKIGndiKFHdnXXL2m+Wv n/tvWJ9yAl+Zu/kTdJrVo/9LVQ== X-Received: by 2002:a17:90b:30c4:: with SMTP id hi4mr5072973pjb.62.1575487306918; Wed, 04 Dec 2019 11:21:46 -0800 (PST) Received: from google.com ([2620:15c:2cb:1:e90c:8e54:c2b4:29e7]) by smtp.gmail.com with ESMTPSA id d14sm9888831pfq.117.2019.12.04.11.21.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Dec 2019 11:21:46 -0800 (PST) Date: Wed, 4 Dec 2019 11:21:41 -0800 From: Brendan Higgins To: SeongJae Park Cc: Jonathan Corbet , KUnit Development , "open list:DOCUMENTATION" , Linux Kernel Mailing List , "open list:KERNEL SELFTEST FRAMEWORK" , shuah , SeongJae Park Subject: Re: [PATCH v3 0/5] Fix nits in the kunit Message-ID: <20191204192141.GA247851@google.com> References: <1575396508-21480-1-git-send-email-sj38.park@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.