Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp602909ybz; Wed, 15 Apr 2020 14:58:22 -0700 (PDT) X-Google-Smtp-Source: APiQypLIw1E2Eg9LjerpydjUIBFmVut1GN7yY/Bshb/BKuvDy2OvT2PGDY3YKRU0cbIawLXcsOFe X-Received: by 2002:a05:6402:1d89:: with SMTP id dk9mr3871615edb.382.1586987902646; Wed, 15 Apr 2020 14:58:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586987902; cv=none; d=google.com; s=arc-20160816; b=dWGqG3CfrSRbVDZ3nZJglOEuRYrH2uihXYLnmAWF9mXeyFlnTDdNEMHCjnoFSA7o4O wbHvbHTrLWzOq43koNGpfldqjvHeEoIBNnzTnC6k6WQ5Sh7DH/h7OJJuJYG9PYpIBPWo MMyTq9nfwWOimMDUtcEZnFYr97yY7EC/lf838K7c0wt2VfPTWvSHuqxJpvafx6/2F4q+ JYmoZx9imW0YEueHfrae2xtuBs6xH3Xen5d9AYZ1ZliNPLuftxroRbsxF1GfSk/flrO/ 3YvwwQ2aj0sea73MAM9xBfB2h6VAA6Eyx0BFLZiAjd9sDFYcVSCTn4yLGVn0zMPsvJCx SjBQ== 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=8GmpDGYHNWO1HVRGOCC1HUE41KMOfYWwP4MYA86x9Hs=; b=Do09IvbFh4sRjBNmdhvO2wKCCkI/x23IbKzd3RQduFR6GL/Vy1dPDAzf7TE6iVWu2p DWthFMQtf9keGVIYOtCCh8Ii5iNpxokkiH8YbtpUXMwokzg8aE1IXJxE5hx+5cI+1lY6 wGzyBtqvi1SlhHfKKkC1tMMZEoK13OPyy8yLZz798jr9zXvK2UlyyqzClkdMEIrsLlof SAAi4jVhVaU2BCMKSyB78DWh2GI/rjcWdSgGyJ9GcTnnh87nV3wAsgMTwhbROkkOXdRy 5SJ0UjjRTUnBv+PnexzLilTN6Ci3Qk6g5AxJP68TLrJHJjXQLt2ok1IEj51CLdhHpH7t LJNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@massaru-org.20150623.gappssmtp.com header.s=20150623 header.b="d/XycrnO"; 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 p6si10812944ejj.173.2020.04.15.14.57.59; Wed, 15 Apr 2020 14:58:22 -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="d/XycrnO"; 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 S2440999AbgDNXKA (ORCPT + 99 others); Tue, 14 Apr 2020 19:10:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1731377AbgDNXJ5 (ORCPT ); Tue, 14 Apr 2020 19:09:57 -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 F3EC1C061A0C for ; Tue, 14 Apr 2020 16:09:55 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id l60so3380511qtd.8 for ; Tue, 14 Apr 2020 16:09:55 -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=8GmpDGYHNWO1HVRGOCC1HUE41KMOfYWwP4MYA86x9Hs=; b=d/XycrnOIE9zVNs85mQ8kiqfaX2FAKRGtTainrFJ0IzS2KMbTBKck6+HKcl12KMfi/ mLyCl0M1OBOJwXwZ3mkeZWf734twgkheW3CbMFKK9vgo54UnwfYGSfuqlmm2nneOODqY lFI2ztDOic5VkmRttn366D+g3jqOHNKyx6SEMuHpgfwN4dMbeYlKBWMp7+Sx0VtOHgkw QAB6RJyglN5wdqlfuhGUcdCQiEH3Z01NDBhyXZH9qCDuhlHStFTK31cHPnoZ3HSzOw1n zELCk4JBQJoOxdIR6Znl2rOgnjsEmPOnLC0nGGBLDO2jdXjzhoB0uXDpMRgRXyQfNDmR X8Hw== 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=8GmpDGYHNWO1HVRGOCC1HUE41KMOfYWwP4MYA86x9Hs=; b=kg7RH0ghHiv3Hzz7glkSlEK4rlNx7Nypou/52egDdqVwP0L+c01hAEfsxqrCtFc/Yt XK1o/Ym3LL/yql9byzLv0DKjff8wVMFBgbbkBM0D4qbLfgp5soT+aGjZL/8OEAgitBk/ kSOdD6/G2FrDou7LtiyiZVI60F64YwcQ83OenOG5VuxZDGsn3dhrw8sOHxnJGfcn0zef itMm4VCDOjSRBLJoQiOzMcAbNnPet7bgwK470/kpjOFXI0f+d3/rG7UvAxCMYMFAi7f4 eKvR8xgiYpTzN322kuCcbPhCbMXE9l25F2fWDQtC0sZIY9ngYDEM6F+I3ZnzlEhzJQhl r9kA== X-Gm-Message-State: AGi0Pua5WQzjkRxXDypIhFcfBWAPIF2Kq1xBUZMAuSPFVUxIOTZ2yePN KHRtP4o035M2aRVY+imdr1qvlQ== X-Received: by 2002:ac8:16e4:: with SMTP id y33mr19301422qtk.4.1586905795146; Tue, 14 Apr 2020 16:09:55 -0700 (PDT) Received: from bbking.lan ([2804:14c:4a5:36c::cd2]) by smtp.gmail.com with ESMTPSA id f1sm11455084qkl.72.2020.04.14.16.09.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Apr 2020 16:09:54 -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: [RESEND] kunit: use --build_dir=.kunit as default Date: Tue, 14 Apr 2020 20:09:50 -0300 Message-Id: <20200414230950.83665-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 make KUnit easier to use, and to avoid overwriting object and .config files, the default KUnit build directory is set to .kunit * Related bug: https://bugzilla.kernel.org/show_bug.cgi?id=205221 Signed-off-by: Vitor Massaru Iha --- 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 7dca74774dd2..5da190c79481 100755 --- a/tools/testing/kunit/kunit.py +++ b/tools/testing/kunit/kunit.py @@ -116,7 +116,7 @@ def main(argv, linux=None): run_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') run_parser.add_argument('--defconfig', help='Uses a default .kunitconfig.', @@ -136,12 +136,11 @@ def main(argv, linux=None): if get_kernel_root_path(): os.chdir(get_kernel_root_path()) - 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 cli_args.defconfig: create_default_kunitconfig() -- 2.25.1