Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp503841pxu; Sun, 25 Oct 2020 07:48:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwicflb6poPUn2MxNL5Hb7jo+lRxicGRQc8TOoF2GLo6IN36aDunotrZUOMbi2FXqmLG/z X-Received: by 2002:a05:6402:1119:: with SMTP id u25mr12224843edv.37.1603637327459; Sun, 25 Oct 2020 07:48:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603637327; cv=none; d=google.com; s=arc-20160816; b=wgOqB3RYpS3z8bKqAg0l0/ZWHCj2lUW2B6X2ik0qqKbTR7CV/6Ca+jFQpAnW0o2JuN 9fzaGuvV6A0glxf3RVH1htLY0V/jjxTgUelUADxTnuGXDBz/hKZagSnIgVrSCEYuQFPz gpGwXvJ5AxMk9b8g87cFpCXSwGkdXCJ9flzgIGcGlONBwIvhA9hh8/gKBkVe0/qW62jR MV+FyVp+Y+Wa7MAPbw9hPK/RktctS9XyUTFgLuEnE9SwTaTH+q3fGghnTKzXKvpbLOz7 oncniIuZQE1wzmLl/f14hpaZ+ugj9Zm9LthZffpUsFnWU+chkPgw46IcPFW6a6pUiAD9 id7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=BwzX5tZ93thycorokjm/JXJf/sf9K5SqthDJjJ9IEPg=; b=mcLCUkiyYQ1q/d76jcq+TWIjY/llJPbux3dqV48ZBFNO/FuX9XpJGq1NMSIvKBuTR3 iKER82VRLGh+/bZ4IBhJL4sIQAT/m4dGbtKa3oKKnlLogU4mWC1EqtFtcwST5vs8hcvO KJslBW+HuyhwvPKxg2TAXCEY22Tv2FPpTfSuRN8gZZV2dMlRkoz3eMNNXztCCGC3gXAq TARiJZc7j/I5WO0uAJaG9co56Y/1HnVNJcTtfh1JDki7rJqNkxxC/xqfCMEPFa2CRpU6 1HF2aZ0pYXLePno7jrThtxI10v40TFz+2kLl4g8yXa2G/ErleV8osgu7t+HUwo9bmuch oR1g== ARC-Authentication-Results: i=1; mx.google.com; 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 p25si5388031edw.585.2020.10.25.07.48.24; Sun, 25 Oct 2020 07:48:47 -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; 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 S1416150AbgJYNBG (ORCPT + 99 others); Sun, 25 Oct 2020 09:01:06 -0400 Received: from fgw21-7.mail.saunalahti.fi ([62.142.5.82]:34218 "EHLO fgw21-7.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1416146AbgJYNBF (ORCPT ); Sun, 25 Oct 2020 09:01:05 -0400 Received: from localhost (88-115-248-186.elisa-laajakaista.fi [88.115.248.186]) by fgw21.mail.saunalahti.fi (Halon) with ESMTP id e49f1d72-16bf-11eb-9eb8-005056bdd08f; Sun, 25 Oct 2020 14:44:59 +0200 (EET) Date: Sun, 25 Oct 2020 14:44:59 +0200 From: andy@surfacebook.localdomain To: SeongJae Park Cc: Brendan Higgins , SeongJae Park , Shuah Khan , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , Linux Kernel Mailing List Subject: Re: [PATCH 2/2] kunit: tool: Mark 'kunittest_config' as constant again Message-ID: <20201025124459.GA1157488@surfacebook.localdomain> References: <20201022063526.12554-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201022063526.12554-1-sjpark@amazon.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 22, 2020 at 08:35:26AM +0200, SeongJae Park wrote: > On Wed, 21 Oct 2020 14:32:52 -0700 Brendan Higgins wrote: > > > On Mon, Oct 12, 2020 at 3:27 AM SeongJae Park wrote: > > > > > > From: SeongJae Park > > > > > > 'kunit_kernel.kunittest_config' was constant at first, and therefore it > > > used UPPER_SNAKE_CASE naming convention that usually means it is > > > constant in Python world. But, commit e3212513a8f0 ("kunit: Create > > > default config in '--build_dir'") made it modifiable to fix a use case > > > of the tool and thus the naming also changed to lower_snake_case. > > > However, this resulted in a confusion. As a result, some successing > > > changes made the tool unittest fail, and a fix[1] of it again incurred > > > the '--build_dir' use case failure. > > > > > > As the previous commit fixed the '--build_dir' use case without > > > modifying the variable again, this commit marks the variable as constant > > > again with UPPER_SNAKE_CASE, to reduce future confusions. > > > > > > [1] Commit d43c7fb05765 ("kunit: tool: fix improper treatment of file location") > > > > > > Signed-off-by: SeongJae Park > > > > Reviewed-by: Brendan Higgins > > Thanks :) > > > > > Thanks for this! This is something I meant to fix a while ago and forgot about. > > > > One minor issue, this patch does not apply on torvalds/master right > > now. Could you please rebase this? > > Surely of course, I will send next version soon. May I ask what happened to [1]? I mean it seems these two are goind to collide. Brendan? [1]: https://lore.kernel.org/linux-kselftest/20201015152348.65147-1-andriy.shevchenko@linux.intel.com/ -- With Best Regards, Andy Shevchenko