Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3976388pxy; Mon, 26 Apr 2021 14:33:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxV7bnhla5KDXZ3X8SPlxIKIjbwPSkWNtp55uybpDV1waBZB6sWqmQXWnJw9RARmbkF7KWS X-Received: by 2002:a05:6402:1711:: with SMTP id y17mr724489edu.384.1619472793037; Mon, 26 Apr 2021 14:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619472793; cv=none; d=google.com; s=arc-20160816; b=Ydb0Qn85UhcgwbNTNlBhperVZWbp6lgfy032hhPE4v68yECElbDQF005t3P1D+0YH+ kRHfPFayl/0qupqWXW0LlaUMIdS5shv+A2EXhn0HtklIDQGBK8ph/fG6QBHO2Ns2H7Uv YdYgqfQAaCLkCPt+qiq25siMKzfGjxC36keThQyqTYCE6MvJ+WC7Ohsv1ZF3S5bR3OEn a1l/DkxZt4nryWu8gMrp5qmfHhAGruw2hj+lArks+04zpr0/cJoD08QoSO1FoC3fO9Ta b9dJPCpiYGBnaq5dBnpdQI3lAhxR3kRoNFE9VqJdoKqA0Z7yG8XPAd1z9kxkmKpO31Jx 29+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=BRra/jPCviRQtIjxwlgYvRcZtIqfcfIxl/QCOhP8XqM=; b=vmWPGOQUgagYOZflGH3cy5GbkfhJmfY9X2ulK/KBUvltG2UvKHqjgidt/GfoZxE3I/ T+KvzqN02UF303hHPanoCSrBMf6tuiqXwQQGGUkUjOuKHMf6nWoN5hjkLO3YKABEiAGu zLUsvmkDqgoVC3/gCX0X42eooSm7yLTVNPVVajWogY+QTGeF6MD7YK6TKvwb3e4gPjbG Sd/N04h/grX+tqXM+nBXzV57lJ+WMu+6D3ORlGHgj8K6d3Wx0p7nddoPfQpnvWnOIEUP SPtNLu4R6d1VFG2dziyMlTigMgCiF75FhpP2m9HrMoY9dPqL3wldyi8d6MRFGW4jCwIU sxGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=EP90p7eh; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s9si856029edc.296.2021.04.26.14.32.49; Mon, 26 Apr 2021 14:33:13 -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=@google.com header.s=20161025 header.b=EP90p7eh; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235381AbhDZVcW (ORCPT + 99 others); Mon, 26 Apr 2021 17:32:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235389AbhDZVcV (ORCPT ); Mon, 26 Apr 2021 17:32:21 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0BD0C061756 for ; Mon, 26 Apr 2021 14:31:37 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id o16so65832214ljp.3 for ; Mon, 26 Apr 2021 14:31:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BRra/jPCviRQtIjxwlgYvRcZtIqfcfIxl/QCOhP8XqM=; b=EP90p7ehHJgY9KOuBLpqwJgUuPk26rDZaLsYDOARIyfUD1fUzFTxEvCMTbbvLT/eAQ /HofzxErUfyaUxu42mnvT3eSHi++IydOeLXKom0EquNHllzWRxGw4GtTPFehG/4g46k3 c2/HfzLw0vSVk3MS7Bq014JfUDcTKiYbBYaI6rKuJ4L4NuNzyLythel33HovI4hZxYZ2 sJKdHi+Co5GRMFTNYxjJFMnu86wlEPZmkjHgDttNoiNENZXZiuNV2+2SnAfVO8ZfTOZX 8yjobRRjFIwTisT3sTYTPem40ksdqpTx/RO7h+1uRqhfRJMAl+PhGwfIcYX6z2QkFRHc kjlg== 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=BRra/jPCviRQtIjxwlgYvRcZtIqfcfIxl/QCOhP8XqM=; b=MVbQvFwWzcGdipAvrXJgVn0mEL+t6LTbwT437kiMP4A/qLxLw977CueroRDQQvBcB7 wBryoDppB1bX/QOCu6OjWZc0cHEMs5x6oSfpJi26e0hDM5gGAh10LnI3iuWffJhCQTdY iyfBfXVaYSbo+Ahv1/OueBl7sePQp9nV/ZpREkIHIHDYt2rAG26jx3tdeOg7oZN0g6Gc gLwS4boRmSpnqIt5MYYm5BaZQp2frgmJLet4kOJNTAxmg2JiEcBj04C3vRlPSnIFeTlT 2i/qqFXEiwYPmTGg/y3kJYthNsxk0F4nz4KaM86UKmEY9wjYy+pfwxHHD6x2es0+Zbym IzSg== X-Gm-Message-State: AOAM533GQF3Mk9P6XLb/RMwScOBsKdVay/BYysQhUxrce7d7RZl8ogKV 0av4yoTwgDJSgWCJe2AOcqIA8/MWcQp+I+0gQ6Bk1g== X-Received: by 2002:a05:651c:1102:: with SMTP id d2mr13553294ljo.490.1619472696085; Mon, 26 Apr 2021 14:31:36 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: David Gow Date: Tue, 27 Apr 2021 05:31:27 +0800 Message-ID: Subject: Re: Running kunit_tool on unclean trees To: Masahiro Yamada Cc: Marcelo Schmitt , KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , Linux Kernel Mailing List , andersonreisrosa@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 26, 2021 at 3:06 PM Masahiro Yamada wrote: > > On Sun, Apr 25, 2021 at 4:05 AM Marcelo Schmitt > wrote: > > > > Hi, a friend and I were chasing bug 205219 [1] listed in Bugzilla. > > We step into something a little bit different when trying to reproduce > > the buggy behavior. In our try, compilation failed with a message form > > make asking us to clean the source tree. We couldn't run kunit_tool > > after compiling the kernel for x86, as described by Ted in the > > discussion pointed out by the bug report. > > > > Steps to reproduce: > > > > 0) Run kunit_tool > > $ ./tools/testing/kunit/kunit.py run > > Works fine with a clean tree. > > > > 1) Compile the kernel for some architecture (we did it for x86_64). > > > > 2) Run kunit_tool again > > $ ./tools/testing/kunit/kunit.py run > > Fails with a message form make asking us to clean the source tree. > > This is probably because > tools/testing/kunit/kunit_kernel.py > runs make with O= option. > > > Yes: KUnit's tooling has started setting O=.kunit by default[1]. If you'd rather build KUnit in-tree, you can use the "kunit.py run --build_dir=." option, which should work. -- David [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/tools/testing/kunit?id=ddbd60c779b4ddaa87173a160ce90146933fb8f9