[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFd5g46bb_46dCpu3t=qT0FMqifS8wodnhjWC7jfpkuhT1ngAQ@mail.gmail.com>
Date: Mon, 2 Dec 2019 22:40:49 -0800
From: Brendan Higgins <brendanhiggins@...gle.com>
To: SeongJae Park <sj38.park@...il.com>
Cc: shuah <shuah@...nel.org>, Jonathan Corbet <corbet@....net>,
"open list:KERNEL SELFTEST FRAMEWORK"
<linux-kselftest@...r.kernel.org>,
KUnit Development <kunit-dev@...glegroups.com>,
"open list:DOCUMENTATION" <linux-doc@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
SeongJae Park <sjpark@...zon.de>
Subject: Re: [PATCH 4/6] kunit: Create default config in 'build_dir'
On Sun, Dec 1, 2019 at 3:25 PM SeongJae Park <sj38.park@...il.com> wrote:
>
> From: SeongJae Park <sjpark@...zon.de>
>
> If both '--build_dir' and '--defconfig' are given, the handling of
> '--defconfig' ignores '--build_dir' option. This commit modifies the
> behavior to respect '--build_dir' option.
>
> Signed-off-by: SeongJae Park <sjpark@...zon.de>
> ---
> tools/testing/kunit/kunit.py | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/tools/testing/kunit/kunit.py b/tools/testing/kunit/kunit.py
> index f8f2695..1746330 100755
> --- a/tools/testing/kunit/kunit.py
> +++ b/tools/testing/kunit/kunit.py
> @@ -114,6 +114,11 @@ def main(argv, linux=None):
> cli_args = parser.parse_args(argv)
>
> if cli_args.subcommand == 'run':
> + if cli_args.build_dir:
> + kunit_kernel.KUNITCONFIG_PATH = os.path.join(
If you are going to modify the value of KUNITCONFIG_PATH can you
rename the variable to make it lower_snake_case? UPPER_SNAKE_CASE in
Python is usually (at least in this directory) used to indicate the
variable is a constant.
> + cli_args.build_dir,
> + kunit_kernel.KUNITCONFIG_PATH)
> +
> if cli_args.defconfig:
> create_default_kunitconfig()
>
> --
> 2.7.4
>
Powered by blists - more mailing lists