Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp603104ybz; Wed, 15 Apr 2020 14:58:39 -0700 (PDT) X-Google-Smtp-Source: APiQypIq/glgWIQVydCH3tcz8eR47w2CcGdB/cFprppLeM3R3WZ4wTeWFwFzMWrcuuyTJ0M0Z+Yj X-Received: by 2002:a50:f61b:: with SMTP id c27mr11055514edn.256.1586987918861; Wed, 15 Apr 2020 14:58:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586987918; cv=none; d=google.com; s=arc-20160816; b=ifK6dj4l6EjqYmkpDRiB9i9n0l3p0jPqiMrFF8r+Nb7frajc3XoyVP/DLwM81E/fTK HWV8SJ2QCVfztN1BIg+K8YqvROMtamb5nxzmCkgQfpAhx/OSRTqo2Ka6mf9ktUChelNj wPn1jZzRPQ9vYpKkY6wrIUta8RMcCLzqGHXpX6PMELQBS5FyUb/T+/54WdrFuCuXo5vp tUrZaI2cW1e6bh3+5EKrz9o72+A8NclS4CG71ACe267wDHkE8GS42m8dY0+28r9nuxdj ajcBUGtuOnUBQMj8jq73DJ/N1paQL3sZLq8IYrYlo98u3CsbgjtFREpJh+VMlbt6KTuu 1i7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=jCwPuKmH/oI9C7WlTBDAO1eLLHGw+bPmXi184TkjafU=; b=f98f8o1OhRO7KgmiE85Z0iL6UGYRfJexLhFc6lo2e4OskqoijYW96DMeW2IxlnnA4s QVkVAFv+RVSulW3ZQQeUIu+yEjzde/ev1Dq/iDZuJVYPmPtZwoThdEsxrKvjzRp4PQgJ smRHEpiyr4DZbJSASCi4kkGCdSQcPWpWbl8opuxdL89nPxcEE1sSKFIMK6BMneRAFIDi tbaL0MQmPCoPo//ir1ibakSR3E1RvXbM9aazrRIvdzdXBvPzZRmg7m551KB4ryBdd2jm 6zaOgWcRCJTJ9pQGzmv+SIx4wrlLuwQuGwLzd0m5molD32Y/4V4hD7zYgFqYV1ywFjwt lqdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=Qi+OXTWR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i9si10849278edv.230.2020.04.15.14.58.15; Wed, 15 Apr 2020 14:58:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=Qi+OXTWR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392177AbgDNXiA (ORCPT + 99 others); Tue, 14 Apr 2020 19:38:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731566AbgDNXh6 (ORCPT ); Tue, 14 Apr 2020 19:37:58 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87F5CC061A0E for ; Tue, 14 Apr 2020 16:37:58 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id f13so11732712qti.5 for ; Tue, 14 Apr 2020 16:37:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=massaru-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jCwPuKmH/oI9C7WlTBDAO1eLLHGw+bPmXi184TkjafU=; b=Qi+OXTWR3M+VOoHxKWPFvZq5KUuIF2h5aY2NneEvBrAsN4w6drKvJqKmM4Qi4V+wNO a4foeUbOhBpTfOuHkhg1rhG9eeWx7+OuH0t38UfAWlIg73vLjR1Ae60iX+zIpmdEk1Ds AJGjsxtxgOm+GdJKjCTtijUR+extToVz7++Nrsm0u+Y3azL19PJdxB7G+v79d229YLlq GHz3HxZkVyfPaoLuyWcF0RYCN7z2OKDzE1DzOVMoDXPz5VloK6+xB+uk3vxoD0PLIRkD +v0Lu8W/Dx7bnqA0MgicJCwSgsLyjQhm3wGmm9Jz0Mt2F/Wqsd9BEj8g8vVFM7+46HmE SxiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jCwPuKmH/oI9C7WlTBDAO1eLLHGw+bPmXi184TkjafU=; b=TnpqExnnJpyQ9iG8CYca04PzJ7puYqpFAlAgr3dMkN+eoei0YbPXiRu1sAK0t0qj4S eTBW693XZhMz21VRJnu+RQxfX5HiXlG/xKRCh9tj0bSUHz0EWvcob+xXzgYzNP9A9qhk w8v3oEVrCPmdtENrgySv5r0QAm1zKXzC6NGRNmBR+xgT5HaED8L2t6PCbgPIiaBXMuFM csRlhOFoyZpe9/AoTnvc9HOqHt4WJnLQ9xBWfZu+7o0OSfh5kwUSotK7J0J8JT976vaA s7afbpZUCpWULy4+gcafupsNW5GLwpPAJtD29r87R2BNW2YIlOTtGgQMJChYgD0aC2vk 9U2A== X-Gm-Message-State: AGi0PubytKkGLbHIO9CBkQltWjdbjAEOrQpq+LRz1kgvBAZ5XCAZIWWF pt5FTEkRMj3YLDHo2em9K39+2A== X-Received: by 2002:ac8:45da:: with SMTP id e26mr8533094qto.337.1586907477413; Tue, 14 Apr 2020 16:37:57 -0700 (PDT) Received: from bbking.lan ([2804:14c:4a5:36c::cd2]) by smtp.gmail.com with ESMTPSA id h128sm11333859qkd.17.2020.04.14.16.37.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Apr 2020 16:37:56 -0700 (PDT) From: Vitor Massaru Iha To: kunit-dev@googlegroups.com Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, brendanhiggins@google.com, skhan@linuxfoundation.org, linux-kernel-mentees@lists.linuxfoundation.org Subject: [PATCH] kunit: use KUnit defconfig by default Date: Tue, 14 Apr 2020 20:37:53 -0300 Message-Id: <20200414233753.94978-1-vitor@massaru.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To improve the usability of KUnit, defconfig is used by default if no kunitconfig is present. * https://bugzilla.kernel.org/show_bug.cgi?id=205259 Signed-off-by: Vitor Massaru Iha --- tools/testing/kunit/kunit.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/tools/testing/kunit/kunit.py b/tools/testing/kunit/kunit.py index 7dca74774dd2..4b98f6e75e4c 100755 --- a/tools/testing/kunit/kunit.py +++ b/tools/testing/kunit/kunit.py @@ -23,8 +23,8 @@ import kunit_parser KunitResult = namedtuple('KunitResult', ['status','result']) KunitRequest = namedtuple('KunitRequest', ['raw_output','timeout', 'jobs', - 'build_dir', 'defconfig', - 'alltests', 'make_options']) + 'build_dir', 'alltests', + 'make_options']) KernelDirectoryPath = sys.argv[0].split('tools/testing/kunit/')[0] @@ -118,10 +118,6 @@ def main(argv, linux=None): 'directory.', type=str, default='', metavar='build_dir') - run_parser.add_argument('--defconfig', - help='Uses a default .kunitconfig.', - action='store_true') - run_parser.add_argument('--alltests', help='Run all KUnit tests through allyesconfig', action='store_true') @@ -143,8 +139,7 @@ def main(argv, linux=None): cli_args.build_dir, kunit_kernel.kunitconfig_path) - if cli_args.defconfig: - create_default_kunitconfig() + create_default_kunitconfig() if not linux: linux = kunit_kernel.LinuxSourceTree() @@ -153,7 +148,6 @@ def main(argv, linux=None): cli_args.timeout, cli_args.jobs, cli_args.build_dir, - cli_args.defconfig, cli_args.alltests, cli_args.make_options) result = run_tests(linux, request) -- 2.25.1