Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp795330pxx; Mon, 26 Oct 2020 23:57:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxaRC5fcGbtogxpOn3VZBr2aYREUalN7vpbTBuB1hFEl2duUNfdyogB5vP6DvfI1msUm3A3 X-Received: by 2002:aa7:cac2:: with SMTP id l2mr725821edt.141.1603781867491; Mon, 26 Oct 2020 23:57:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603781867; cv=none; d=google.com; s=arc-20160816; b=DXxNkS+QJL97zgq15V2VZ/jYYLrh9JVqzK1SpgMxU3d8NLOl8Gzxum1Wl8xqrY5wGy Z8gBd2Q5Wefl9WfZJdNMwGWNyRxAa3H6WEO03t8BqMJSYYYhHdINm9aUQkOoR68PdVTz 1fWrYmBODzAo0KukN9HRtu2bvFtt7Rw7gQjPd9+oTzYwxmC04+5A9U8QITh2iD75JMEg 6DV84uWiAWmJKXb/dDtG6vDgweGqUVxgpgeVUboQJPtdE2wjZ2M8WmvdUdXM8su5nYaO x1RtJUbQQVPNbq+JxNUYqheQVkzNLgaCTWDSsreL857yNkKXAewK0R4OT17bUGM55tSo PMHQ== 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=CXoBtb7hZg65eUO5Skt0IZ7KKc+QKlYeerwa/eOfSGQ=; b=1I02mtS4axTGGpX38DQjLtSCRnDynXvUwsWvL7qX7b0c7kQtR2UyNAa5XWlw5Rk+rV ZMmYoeQoOv4ADMS/MPuy0pAxz2myDuwd7xkt04xDWpiN5RbjPZgXw5lpJXwf3qKzs5aA FxM6JuQvshai8ExPBwn1x3QvohERN4CQg3j1SQwGOF/e+V9lGzGqi/v1pUCvdmGsqnp3 xRGNKhZuetSdh5SfTMAJLbEnN+34agwXQTLjz9Ov4EJazCQeYQ+Uzp3LmTzKr9LEi1Vs vEKGfBeH3JV4k41aPsW96Wj9dUHrJ5xepmqcyV14qSddJmQ/QpyCHhXW4MoLfyBTixcJ vtNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=j3nVfTLf; 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 r10si380755eji.253.2020.10.26.23.57.25; Mon, 26 Oct 2020 23:57: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; dkim=pass header.i=@google.com header.s=20161025 header.b=j3nVfTLf; 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 S1728589AbgJZUop (ORCPT + 99 others); Mon, 26 Oct 2020 16:44:45 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:39535 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727275AbgJZUop (ORCPT ); Mon, 26 Oct 2020 16:44:45 -0400 Received: by mail-pg1-f196.google.com with SMTP id o7so6728155pgv.6 for ; Mon, 26 Oct 2020 13:44:44 -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=CXoBtb7hZg65eUO5Skt0IZ7KKc+QKlYeerwa/eOfSGQ=; b=j3nVfTLfrQADpl0INIZy5QtGpAuuKuwsllTEBcNuaN7bttWfpOO1ARbJEZbEIoZLzu yqyL75Q9qQVSD2oG47onib/wJaJI5MYz/xuC3Mq3TEsNg8t9StZwThI1DwkOv1Dcl4Wy juxbKlVizYkYQaTYhEXGKk2KlIdfKWHxxfLvvwRKZ8VyTEHawpTX6Q/3u6nlQTH0QLus +dZULHFwZoXtc/R55kZgQudJZd+dWJLqyywDC4CuVknjfGcVR1plj639HZ7yuhdZsmvg ddUW+NNCStRG5onZJ+oN4H+7/3nMYsTlyWFeSOt0vt0YD9o6bM85UtS7f43cjIrGdWwQ KwNg== 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=CXoBtb7hZg65eUO5Skt0IZ7KKc+QKlYeerwa/eOfSGQ=; b=a88UqzCPJk9cPXdnVOEo1k8C4HWqORPTHfIY/uj4i5JRdzoN2fjd4w8UkwJGnCItbq PMOMjsTktyGefhu27ztDc4xMrdIb8fg9um0E9rTcKe1sdCgt+BKCGtiCQU2c8THogFhd 5QMsKgDJJ38ncohaqRfSEMhmRh3oolup5tziSSVjYmWznS7euZx7R8An8kRVVTOKGzvJ WhXv7daI/QK5CWVIRsfAtFmNjvTPtsBd1p2Jgqnlw0aT/RRQMBp/pMtx2j1L1jjOTtFL z/bshLbEBmCrqcegriya09+MwdvBt3u/ITdAy8svFLwaczB0eHJV7ul1dOx0jZBWODeD aPvg== X-Gm-Message-State: AOAM5310coIyW/TA51ByUqUElaB+qky50beIqPZS7xaBK1xqmyT88TXQ Solp6ILe/GZi3JJqPuqoEObb9IB8EjVra/EelK+Lsg== X-Received: by 2002:a63:495d:: with SMTP id y29mr13514203pgk.384.1603745084311; Mon, 26 Oct 2020 13:44:44 -0700 (PDT) MIME-Version: 1.0 References: <20201022063526.12554-1-sjpark@amazon.com> <20201025124459.GA1157488@surfacebook.localdomain> In-Reply-To: <20201025124459.GA1157488@surfacebook.localdomain> From: Brendan Higgins Date: Mon, 26 Oct 2020 13:44:33 -0700 Message-ID: Subject: Re: [PATCH 2/2] kunit: tool: Mark 'kunittest_config' as constant again To: Andy Shevchenko , SeongJae Park , SeongJae Park Cc: Shuah Khan , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 25, 2020 at 5:45 AM wrote: > > 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/ Sorry for the confusion here. After an initial glance at your patches (before I did the review end of last week) I thought only the first patch from SeongJae would potentially conflict with yours (Andy's) (hence why I hadn't reviewed it yet, I was waiting until after I looked at yours). I noticed on Friday that SeongJae's changes were actually fully encompassed by Andy's, so I am taking Andy's not SongJae's. Sorry, I was going to notify SongJae today, but you beat me to it. Sorry everyone.