linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Gow <davidgow@google.com>
To: Daniel Latypov <dlatypov@google.com>
Cc: Brendan Higgins <brendanhiggins@google.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	KUnit Development <kunit-dev@googlegroups.com>,
	"open list:KERNEL SELFTEST FRAMEWORK" 
	<linux-kselftest@vger.kernel.org>,
	Shuah Khan <skhan@linuxfoundation.org>
Subject: Re: [PATCH 1/3] kunit: tool: drop unused load_config argument
Date: Wed, 18 May 2022 15:42:34 +0800	[thread overview]
Message-ID: <CABVgOSmK94tTu4DMBMrmP934xXV4RD8CwmA8+NrV+YYbvWGxzQ@mail.gmail.com> (raw)
In-Reply-To: <20220516194730.1546328-1-dlatypov@google.com>

[-- Attachment #1: Type: text/plain, Size: 2358 bytes --]

On Tue, May 17, 2022 at 3:48 AM Daniel Latypov <dlatypov@google.com> wrote:
>
> It's always set to true except in one test case.
> And in that test case it can safely be set to true anyways.
>
> Signed-off-by: Daniel Latypov <dlatypov@google.com>
> ---

Looks good.

Reviewed-by: David Gow <davidgow@google.com>

-- David

>  tools/testing/kunit/kunit_kernel.py    | 4 ----
>  tools/testing/kunit/kunit_tool_test.py | 2 +-
>  2 files changed, 1 insertion(+), 5 deletions(-)
>
> diff --git a/tools/testing/kunit/kunit_kernel.py b/tools/testing/kunit/kunit_kernel.py
> index 3539efaf99ba..8bc8305ba817 100644
> --- a/tools/testing/kunit/kunit_kernel.py
> +++ b/tools/testing/kunit/kunit_kernel.py
> @@ -219,7 +219,6 @@ class LinuxSourceTree:
>         def __init__(
>               self,
>               build_dir: str,
> -             load_config=True,
>               kunitconfig_path='',
>               kconfig_add: Optional[List[str]]=None,
>               arch=None,
> @@ -233,9 +232,6 @@ class LinuxSourceTree:
>                         self._arch = 'um' if arch is None else arch
>                         self._ops = get_source_tree_ops(self._arch, cross_compile)
>
> -               if not load_config:
> -                       return
> -
>                 if kunitconfig_path:
>                         if os.path.isdir(kunitconfig_path):
>                                 kunitconfig_path = os.path.join(kunitconfig_path, KUNITCONFIG_PATH)
> diff --git a/tools/testing/kunit/kunit_tool_test.py b/tools/testing/kunit/kunit_tool_test.py
> index 25a2eb3bf114..b9158017ece6 100755
> --- a/tools/testing/kunit/kunit_tool_test.py
> +++ b/tools/testing/kunit/kunit_tool_test.py
> @@ -393,7 +393,7 @@ class LinuxSourceTreeTest(unittest.TestCase):
>                         return subprocess.Popen(['echo "hi\nbye"'], shell=True, text=True, stdout=subprocess.PIPE)
>
>                 with tempfile.TemporaryDirectory('') as build_dir:
> -                       tree = kunit_kernel.LinuxSourceTree(build_dir, load_config=False)
> +                       tree = kunit_kernel.LinuxSourceTree(build_dir)
>                         mock.patch.object(tree._ops, 'start', side_effect=fake_start).start()
>
>                         with self.assertRaises(ValueError):
>
> base-commit: 8a7ccad38f8b25c8202efd69371a022357286400
> --
> 2.36.1.124.g0e6072fb45-goog
>

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4003 bytes --]

  parent reply	other threads:[~2022-05-18  7:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-16 19:47 [PATCH 1/3] kunit: tool: drop unused load_config argument Daniel Latypov
2022-05-16 19:47 ` [PATCH 2/3] kunit: tool: redo how we construct and mock LinuxSourceTree Daniel Latypov
2022-05-18  7:43   ` David Gow
2022-07-06 19:04   ` Brendan Higgins
2022-05-16 19:47 ` [PATCH 3/3] kunit: tool: refactoring printing logic into kunit_printer.py Daniel Latypov
2022-05-18  7:48   ` David Gow
2022-05-18 15:50     ` Daniel Latypov
2022-07-06 19:15       ` Brendan Higgins
2022-07-06 19:16   ` Brendan Higgins
2022-05-18  7:42 ` David Gow [this message]
2022-07-06 18:58 ` [PATCH 1/3] kunit: tool: drop unused load_config argument Brendan Higgins

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABVgOSmK94tTu4DMBMrmP934xXV4RD8CwmA8+NrV+YYbvWGxzQ@mail.gmail.com \
    --to=davidgow@google.com \
    --cc=brendanhiggins@google.com \
    --cc=dlatypov@google.com \
    --cc=kunit-dev@googlegroups.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=skhan@linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).