Message ID | 20190118091119.9108-1-po-hsu.lin@canonical.com |
---|---|
Headers | show |
Series | selftests: user: return Kselftest Skip code for skipped tests | expand |
On 18.01.19 10:11, Po-Hsu Lin wrote: > BugLink: https://bugs.launchpad.net/bugs/1812198 > > == Justification == > This user_copy test has failed while attempting to insert the > test_user_copy module, but this module does not exist in the Bionic KVM > kernel as the CONFIG_TEST_USER_COPY was not enabled. > > # modprobe test_user_copy > modprobe: FATAL: Module test_user_copy not found in directory /lib/modules/4.15.0-1028-kvm > > == Fix == > d7d5311 (selftests: user: return Kselftest Skip code for skipped tests) > 3c07aae (selftests: kselftest: change KSFT_SKIP=4 instead of KSFT_PASS) > c31d02d (selftests: kselftest: Remove outdated comment) > > This fix will make the test return a skipped retun code if the > test_user_copy module does not exist. > > This patch set can be cherry-picked into Bionic, and we already have it > in Cosmic / Disco. > > For Xenial, it already got d7d5311 and does not need the other two. > > == Test == > With this patch, the test will return "skipped" as expected: > $ sudo ./test_user_copy.sh > user: module test_user_copy is not found [SKIP] > $ echo $? > 4 > > Note that the test framework will need another fix to treat the SKIP > return code properly. (bug 1812352) > > == Regression potential == > None, > this patch just change the code for the testing tool. > > > Shuah Khan (Samsung OSG) (2): > selftests: user: return Kselftest Skip code for skipped tests > selftests: kselftest: change KSFT_SKIP=4 instead of KSFT_PASS > > Thiago Jung Bauermann (1): > selftests: kselftest: Remove outdated comment > > tools/testing/selftests/kselftest.h | 3 +-- > tools/testing/selftests/user/test_user_copy.sh | 7 +++++++ > 2 files changed, 8 insertions(+), 2 deletions(-) > I accepted all nominations and set the status of xenial and cosmic to fix-released according to you comments here. For Bionic: Acked-by: Stefan Bader <stefan.bader@canonical.com>
On 1/18/19 10:11 AM, Po-Hsu Lin wrote: > BugLink: https://bugs.launchpad.net/bugs/1812198 > > == Justification == > This user_copy test has failed while attempting to insert the > test_user_copy module, but this module does not exist in the Bionic KVM > kernel as the CONFIG_TEST_USER_COPY was not enabled. > > # modprobe test_user_copy > modprobe: FATAL: Module test_user_copy not found in directory /lib/modules/4.15.0-1028-kvm > > == Fix == > d7d5311 (selftests: user: return Kselftest Skip code for skipped tests) > 3c07aae (selftests: kselftest: change KSFT_SKIP=4 instead of KSFT_PASS) > c31d02d (selftests: kselftest: Remove outdated comment) > > This fix will make the test return a skipped retun code if the > test_user_copy module does not exist. > > This patch set can be cherry-picked into Bionic, and we already have it > in Cosmic / Disco. > > For Xenial, it already got d7d5311 and does not need the other two. > > == Test == > With this patch, the test will return "skipped" as expected: > $ sudo ./test_user_copy.sh > user: module test_user_copy is not found [SKIP] > $ echo $? > 4 > > Note that the test framework will need another fix to treat the SKIP > return code properly. (bug 1812352) > > == Regression potential == > None, > this patch just change the code for the testing tool. > > > Shuah Khan (Samsung OSG) (2): > selftests: user: return Kselftest Skip code for skipped tests > selftests: kselftest: change KSFT_SKIP=4 instead of KSFT_PASS > > Thiago Jung Bauermann (1): > selftests: kselftest: Remove outdated comment > > tools/testing/selftests/kselftest.h | 3 +-- > tools/testing/selftests/user/test_user_copy.sh | 7 +++++++ > 2 files changed, 8 insertions(+), 2 deletions(-) > Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
On 2019-01-18 17:11:16 , Po-Hsu Lin wrote: > BugLink: https://bugs.launchpad.net/bugs/1812198 > > == Justification == > This user_copy test has failed while attempting to insert the > test_user_copy module, but this module does not exist in the Bionic KVM > kernel as the CONFIG_TEST_USER_COPY was not enabled. > > # modprobe test_user_copy > modprobe: FATAL: Module test_user_copy not found in directory /lib/modules/4.15.0-1028-kvm > > == Fix == > d7d5311 (selftests: user: return Kselftest Skip code for skipped tests) > 3c07aae (selftests: kselftest: change KSFT_SKIP=4 instead of KSFT_PASS) > c31d02d (selftests: kselftest: Remove outdated comment) > > This fix will make the test return a skipped retun code if the > test_user_copy module does not exist. > > This patch set can be cherry-picked into Bionic, and we already have it > in Cosmic / Disco. > > For Xenial, it already got d7d5311 and does not need the other two. > > == Test == > With this patch, the test will return "skipped" as expected: > $ sudo ./test_user_copy.sh > user: module test_user_copy is not found [SKIP] > $ echo $? > 4 > > Note that the test framework will need another fix to treat the SKIP > return code properly. (bug 1812352) > > == Regression potential == > None, > this patch just change the code for the testing tool. > > > Shuah Khan (Samsung OSG) (2): > selftests: user: return Kselftest Skip code for skipped tests > selftests: kselftest: change KSFT_SKIP=4 instead of KSFT_PASS > > Thiago Jung Bauermann (1): > selftests: kselftest: Remove outdated comment > > tools/testing/selftests/kselftest.h | 3 +-- > tools/testing/selftests/user/test_user_copy.sh | 7 +++++++ > 2 files changed, 8 insertions(+), 2 deletions(-) > > -- > 2.7.4 > > > -- > kernel-team mailing list > kernel-team@lists.ubuntu.com > https://lists.ubuntu.com/mailman/listinfo/kernel-team