All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: Simon Glass <sjg@chromium.org>
Cc: U-Boot Mailing List <u-boot@lists.denx.de>,
	Walter Lozano <walter.lozano@collabora.com>,
	 Alper Nebi Yasak <alpernebiyasak@gmail.com>
Subject: Re: [PATCH 2/5] patman: test_util: Handle nonexistent tests while loading tests
Date: Tue, 28 Jun 2022 09:38:14 -0400	[thread overview]
Message-ID: <CAPnjgZ0cEin0sogLUhJfRGa2034x52qJN97tDDsBZEyyAtsnqQ@mail.gmail.com> (raw)
In-Reply-To: <CAPnjgZ17V=gDGV6NBQDcMLk05E+F_QyRFLSq7K9wMnhT-eGCuw@mail.gmail.com>

On Sat, 2 Apr 2022 at 11:06, Alper Nebi Yasak <alpernebiyasak@gmail.com> wrote:
>
> It's possible to request a specific test to run when trying to run a
> python tool's tests. If we request a nonexistent test, the unittest
> loaders generate a fake test that reports this as an error. However, we
> get these fake tests even when the test exists, because test_util can
> load tests from multiple places one by one and the test we want only
> exists in one.
>
> The test_util helpers currently remove these fake tests when printing
> test results, but that's more of a workaround than a proper solution.
> Instead, don't even try to load the missing tests.
>
> Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
> ---
>
>  tools/patman/test_util.py | 21 +++++----------------
>  1 file changed, 5 insertions(+), 16 deletions(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot-dm, thanks!

  parent reply	other threads:[~2022-06-28 13:44 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-02 17:06 [PATCH 0/5] patman: test_util: Prettify test report outputs for python tools Alper Nebi Yasak
2022-04-02 17:06 ` [PATCH 1/5] patman: test_util: Fix printing results for failed tests Alper Nebi Yasak
2022-04-19 21:54   ` Simon Glass
2022-06-28 13:38   ` Simon Glass
2022-04-02 17:06 ` [PATCH 2/5] patman: test_util: Handle nonexistent tests while loading tests Alper Nebi Yasak
2022-04-19 21:54   ` Simon Glass
2022-06-28 13:38   ` Simon Glass [this message]
2022-04-02 17:06 ` [PATCH 3/5] patman: test_util: Use unittest text runner to print test results Alper Nebi Yasak
2022-04-19 21:54   ` Simon Glass
2022-06-28 13:38   ` Simon Glass
2022-04-02 17:06 ` [PATCH 4/5] patman: test_util: Customize unittest test results for more info Alper Nebi Yasak
2022-04-02 17:06 ` [PATCH 5/5] patman: test_util: Print test stdout/stderr within test summaries Alper Nebi Yasak
2022-04-19 21:54   ` Simon Glass
2022-06-28 13:38   ` Simon Glass
2022-06-28 13:38 ` [PATCH 4/5] patman: test_util: Customize unittest test results for more info Simon Glass

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=CAPnjgZ0cEin0sogLUhJfRGa2034x52qJN97tDDsBZEyyAtsnqQ@mail.gmail.com \
    --to=sjg@chromium.org \
    --cc=alpernebiyasak@gmail.com \
    --cc=u-boot@lists.denx.de \
    --cc=walter.lozano@collabora.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.