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 <[email protected]>

---
 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 -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to