ACK: [X/B/D/E/F/G][Unstable][SRU][PATCH 0/1] ftrace/selftest: make unresolved cases cause failure if --fail-unresolved set

Stefan Bader stefan.bader at canonical.com
Wed May 13 12:24:09 UTC 2020


On 12.05.20 11:30, Po-Hsu Lin wrote:
> == SRU Justification ==
> There are some test cases in ftrace from ubuntu_kernel_selftests that
> would need some kernel configs to be enabled or have some special HW
> requirements:
>   * https://pad.lv/1869347 - missing CONFIG_SAMPLE_TRACE_PRINTK=m
>   * https://pad.lv/1869349 - missing CONFIG_SAMPLE_TRACE_PRINTK=m
>   * https://pad.lv/1874198 - nproc > 1
> 
> If the requirement was not met, these test will fail with "unresolved"
> and return 1. So even these is no failed test case, the ftrace test
> will still be marked as "failed" with the presence of unresolved test:
>     # # of passed:  28
>     # # of failed:  0
>     # # of unresolved:  1
>     # # of untested:  0
>     # # of unsupported:  58
>     # # of xfailed:  0
>     # # of undefined(test bug):  0
>     not ok 1 selftests: ftrace: ftracetest # exit=1
> 
> == Fix ==
> * b730d668138c ("ftrace/selftest: make unresolved cases cause failure if --fail-unresolved set")
> 
> This patch will only make unresolved test case return 1 if we ask it
> to fail with unresolved test case.
> 
> It can be cherry-picked to kernels starting from Disco.
> For Bionic and Xenial it needs to be backported with some context
> adjustment as they're missing some other patches to the testing tool.
> 
> == Test ==
> With the patch applied, the ftrace test will not be marked as failed
> with the presence of unresolved test case:
>     # # of passed:  28
>     # # of failed:  0
>     # # of unresolved:  1
>     # # of untested:  0
>     # # of unsupported:  58
>     # # of xfailed:  0
>     # # of undefined(test bug):  0
>     ok 1 selftests: ftrace: ftracetest
> 
> == Regression Potential ==
> Low, changes limited to testing tools, no actual impacts to our kernels.
> 
> The worst case is to cause false negative in test reports, but in that
> case it's probably a test case issue since a failed case should be
> treated as a failed one, instead of unresolved.
> 
> Alan Maguire (1):
>   ftrace/selftest: make unresolved cases cause failure if
>     --fail-unresolved set
> 
>  tools/testing/selftests/ftrace/ftracetest | 8 +++++++-
>  1 file changed, 7 insertions(+), 1 deletion(-)
> 
Acked-by: Stefan Bader <stefan.bader at canonical.com>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20200513/62284ac4/attachment-0001.sig>


More information about the kernel-team mailing list