]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oeqa/logparser: ignore comments in the test log
authorRoss Burton <ross.burton@arm.com>
Thu, 5 Feb 2026 16:12:43 +0000 (16:12 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 12 Feb 2026 09:51:43 +0000 (09:51 +0000)
commit61d337c9664ad3a52cf25ebb84a78ddb7b83818e
tree11cffa5c67738d4982a52cbcc6f6a648cabac85f
parentd7c8cacaa929b42395163639a4fc9e91040ad42d
oeqa/logparser: ignore comments in the test log

Whilst the log format is normally pretty simple:

  PASS: foo
  SKIP: bar

It's entirely possible for there to be an explanatory comment:

  SKIP: bar # only runs under Windows

We currently use the entire string after the test state as the test
name, which includes the comment.  This can lead to long test names, for
example:

  test_dtype.py:TestStructuredObjectRefcounting.test_structured_object_
  create_delete[ones-1-<subarray>]_#_SKIP_Python_3.12_has_immortal_
  refcounts,_this_test_will_no_longer_work._See_gh-23986

Whilst these test names are very long it isn't normally a problem, but
some packages have non-deterministic skip messages:

  test_ufunc.py:TestUfunc.test_identityless_reduction_huge_array_#_
  SKIP_6.442450944_GB_memory_required,_but_3.366531072_GB_available

This leads to churn in the test reports.

The comment isn't needed, so strip it out when computing the test name.

Note that this will result in a number of tests disappearing in the test
reports, with an identical number of new tests appearing.

[1] https://www.gnu.org/software/automake/manual/automake.html#Scripts_002dbased-Testsuites-1

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/logparser.py