Handle the skip return code in kernel_selftests on Xenial

Bug #1851486 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Triaged
Undecided
Unassigned
linux (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Confirmed
Undecided
Unassigned

Bug Description

Like bug 1812352

In the ubuntu_kernel_selftests, the skipped test will uses return code 4 (KSFT_SKIP).

However the code to handle this non-zero return code was not implemented in the kselftest framework. And this will generate some false-positives results as those skipped tests were treated as a failure.

In X-KVM kernel, test_user_copy.sh test in user will fail because of this:
    user: module test_user_copy is not found [SKIP]
    not ok 1..1 selftests: test_user_copy.sh [FAIL]

Po-Hsu Lin (cypressyew)
tags: added: 4.4 ubuntu-kernel-selftests xenial
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1851486

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu Xenial):
status: New → Incomplete
Po-Hsu Lin (cypressyew)
Changed in linux (Ubuntu):
status: Incomplete → Fix Released
Changed in linux (Ubuntu Xenial):
status: Incomplete → Confirmed
Changed in ubuntu-kernel-tests:
status: New → Confirmed
Sean Feole (sfeole)
Changed in ubuntu-kernel-tests:
status: Confirmed → Triaged
tags: added: sru-20200106
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.