[OS-BUILD PATCH 0/3] redhat/self-test: Provide better failure output for tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Prarit Bhargava on gitlab.com
Merge Request: https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1881

Currently the tests fail without any reasonable information on how to run
the tests manually.  We can add better messaging, for example,

       This redhat/self-test test has failed.  You can run all tests by
executing 'make dist-self-test', or just this test by executing 'bats
redhat/self-test/0001-shellcheck.bats'.

Additionally clean up the tests to provide a proper header for each bats
test as well as a purpose for each test, and reformat the tests to use the
standard kernel practice of using tabs vs spaces.

Signed-off-by: Prarit Bhargava <prarit@xxxxxxxxxx>

---
 redhat/self-test/0001-shellcheck.bats            |   15 +-
 redhat/self-test/1001-rpmlint.bats               |   30 ++--
 redhat/self-test/1002-basic-structural-test.bats |  123 +++++++++++-----------
 redhat/self-test/1003-rpminspect.bats            |   29 ++--
 redhat/self-test/1005-dist-dump-variables.bats   |    8 +-
 redhat/self-test/1006-verify-SPEC-variables.bats |   12 +-
 redhat/self-test/2001-dist-release.bats          |  116 ++++++++++++---------
 redhat/self-test/3001-Makefile-contents.bats     |   28 +++-
 redhat/self-test/test-lib.bash                   |   16 ++
 9 files changed, 224 insertions(+), 153 deletions(-)
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux