Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp413565ybm; Tue, 26 May 2020 21:27:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUwm43bQNP4YA8RahkuKiJkXpsC62SfPUCa/+uJqD7vQPk+NQdpTnCCtJtDlILetbaaVBj X-Received: by 2002:a17:906:7e15:: with SMTP id e21mr4037067ejr.106.1590553621121; Tue, 26 May 2020 21:27:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590553621; cv=none; d=google.com; s=arc-20160816; b=NheV9xaFB/5h6R8FlJs3OuRZNJ1zFG7N0tosV1Y54qaJzgjNeI6BDNhRLXF6hWmaNc uzxqdZNwwe8xpZWUQ9q2HMJcVbI/ZeKJllIq3xY6JVL2AVoQ6gXjMkxHkCGB3KRtjP6Z PwfhTxomiXzzEuSZqVrnoJHBRUgMDuylJc2pbLzNyuICWuXLoYpi2bVdaPwjSAfbRNti qHdvDJ/n1nyAK8neNbKp61VmUNZjD+yz9kzBvheJZAYY90ftk1vfLaMiF4LiO49lFrjn 03QrK6bDaOM/oCsx7kGO0cVSSa/mWlfKPpO2fok9+qjWrIF5CuO4IdzmGx8Tpmd7S8xW Q+7g== 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=Mq62GKb+a6uI+kRh3uk1w4mJxevGSsQXqoT6TNUJtKU=; b=Tnf4TCQ76LxHoPxSQGeRyWjaLEXBxoNJ9Q0ZOGnXzDp/F6hsyejITDGDuLDyBZYPW+ p3ZVAGxxPw9s7iqSdmhposp8tcYPiLupm7Iere4FyE/pGp3p821qRHQzM1T1xvxybiDg mtuUKMWjg1jWgpHCkLLns/fbB8SUTs/zHHmKZOXpxga5sN7knwtjc9wHco8JlpoudX3t 4FfkZ/4p0MDKzRFOXmnFNCT2PoC01fKadJVzfFEBnh4Isf8ff4pjizsPqH53J8j5SoP5 6cFQvPdFbGiE9zUdjzS8xFLxLTkqTbnvL1hE0JlQX+0bLTi5vS02BlLzCcgEBNnJRpBI MDGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b=Fsp134TQ; 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 uz8si1244349ejb.67.2020.05.26.21.26.38; Tue, 26 May 2020 21:27:01 -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=Fsp134TQ; 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 S1726957AbgE0Ae0 (ORCPT + 99 others); Tue, 26 May 2020 20:34:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726835AbgE0AeZ (ORCPT ); Tue, 26 May 2020 20:34:25 -0400 Received: from mail-qt1-x843.google.com (mail-qt1-x843.google.com [IPv6:2607:f8b0:4864:20::843]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7317CC03E96F for ; Tue, 26 May 2020 17:34:25 -0700 (PDT) Received: by mail-qt1-x843.google.com with SMTP id y1so7175853qtv.12 for ; Tue, 26 May 2020 17:34:25 -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=Mq62GKb+a6uI+kRh3uk1w4mJxevGSsQXqoT6TNUJtKU=; b=Fsp134TQ7ts6VmjtGPWLw/8pcYBl5mf3YGy3/ugLjZWeWLH9WV5b+ca9T9kOjAMf7a sw5TPCeQE7mLzQU5m+epgt79iYBYCkzA6CDn2lD2ZKpD/CNQUiRC4/IK2cLOulw4IclN ZB+GpDT/Qs9+fANsZGrmxiyChMn7WelXygAYfgtnEk6yVF14bOgtvMSUrWm9Z20zX9H0 MQb9zfjtYEUTRJV61OCuW1gZUCwGOWPv8B5whJDWlljeGzUbZ6UFjABYB9vk2izKWBly QvmiWi+g3H2NEHGFKSxX8G6y656HaQCbz3VnQ3NyKPs4AxTf/+JCQ7CMH5kxGen1i6Zw UhmA== 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=Mq62GKb+a6uI+kRh3uk1w4mJxevGSsQXqoT6TNUJtKU=; b=GDGKUBOyA5HiEGQkngGuSWzoWDHGWL3wPY4kO5p67s4Mfr06omRzQ/mqstRfk5X70T sgZi1Z5b7loFQbkSzsKQuC8knSAPRfkjBDJuX0Ttl0qPnL+BzP8neRlNwHbLjOAOOY1T gGnjf/xha3Xg7e0Ak03mrqoQZeijdfL+2FF3xr7W+LJ9h4CGm+7fEQrB1acKCK5EFLMZ fQ87V7smfllHR66ihyBFnZeZxEzivPCYaAgyZHT4DLEPgeMNQj2uwh4TSt2natcZ00ew H8WU13NZ1U/TtaSa5kEIiVHFdTeQ6NvDYcBbJXekFXuQMw8NiF0lUJyYBePLTWYfg5ur BWsQ== X-Gm-Message-State: AOAM532Ur1SCl/jHEcv7jcpgmFQOPC0auoNb6YA0GNtp9zYSEsfirfrW d3c0rpd86LA9cbDZBIRrPH/Yg7/HAmutYgtr X-Received: by 2002:ac8:5045:: with SMTP id h5mr1641523qtm.259.1590539664497; Tue, 26 May 2020 17:34:24 -0700 (PDT) Received: from bbking.lan ([2804:14c:4a5:36c::cd2]) by smtp.gmail.com with ESMTPSA id y185sm647153qkd.83.2020.05.26.17.34.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2020 17:34:23 -0700 (PDT) From: Vitor Massaru Iha To: kunit-dev@googlegroups.com, skhan@linuxfoundation.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, brendanhiggins@google.com, linux-kernel-mentees@lists.linuxfoundation.org Subject: [fixup v2] kunit: use --build_dir=.kunit as default Date: Tue, 26 May 2020 21:34:20 -0300 Message-Id: <20200527003420.34790-1-vitor@massaru.org> X-Mailer: git-send-email 2.26.2 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 make KUnit easier to use, and to avoid overwriting object and .config files, the default KUnit build directory is set to .kunit Fixed up minor merge conflicts - Shuah Khan Fixed this identation error exchanging spaces for tabs between lines 248 and 252: tools/testing/kunit/kunit.py run --defconfig File "tools/testing/kunit/kunit.py", line 254 if not linux: ^ TabError: inconsistent use of tabs and spaces in indentation Signed-off-by: Vitor Massaru Iha Reviewed-by: Brendan Higgins Signed-off-by: Shuah Khan Link: https://bugzilla.kernel.org/show_bug.cgi?id=205221 --- version after merge on kunit brach: v1: * fix identation (tabs instead of spaces) v2: * fix v1 changelog description: fix identation (spaces instead of tabs, lines 248-252); * add python error message on commit message; * fix Link tag on commit message. --- tools/testing/kunit/kunit.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tools/testing/kunit/kunit.py b/tools/testing/kunit/kunit.py index b01838b6f5f9..b3490271a103 100755 --- a/tools/testing/kunit/kunit.py +++ b/tools/testing/kunit/kunit.py @@ -169,7 +169,7 @@ def add_common_opts(parser): parser.add_argument('--build_dir', help='As in the make command, it specifies the build ' 'directory.', - type=str, default='', metavar='build_dir') + type=str, default='.kunit', metavar='build_dir') parser.add_argument('--make_options', help='X=Y make option, can be repeated.', action='append') @@ -245,12 +245,11 @@ def main(argv, linux=None): cli_args = parser.parse_args(argv) if cli_args.subcommand == 'run': - if cli_args.build_dir: - if not os.path.exists(cli_args.build_dir): - os.mkdir(cli_args.build_dir) - kunit_kernel.kunitconfig_path = os.path.join( - cli_args.build_dir, - kunit_kernel.kunitconfig_path) + if not os.path.exists(cli_args.build_dir): + os.mkdir(cli_args.build_dir) + kunit_kernel.kunitconfig_path = os.path.join( + cli_args.build_dir, + kunit_kernel.kunitconfig_path) if not linux: linux = kunit_kernel.LinuxSourceTree() -- 2.26.2