Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More verbose test errors #24

Merged

Conversation

bwatkinson
Copy link
Collaborator

#23 should be merged before this. However, this should help us in figuring out test failures in the future.

@calccrypto
Copy link
Collaborator

calccrypto commented Sep 11, 2023

@bwatkinson
Copy link
Collaborator Author

Should shellcheck be run in the CI?

https://github.com/mar-file-system/GUFI/blob/master/.github/workflows/check.yml#L83

If you want to we can. Feel free to open a PR if you want.

In general the teets needed to be cleaned up a bit more. This commit
does the following:
1. Updated finalize_test to take a 3rd arguement to give more verbose
   output on failure of skipping of tests.
2. Updated skip routine to return proper error code of 255 for CTest
3. Changed XDDTEST_OUTPUT_DIR -> XDDTEST_LOG_DIR as the naming seemed
   off when treating the output as a log.
4. Added the fucntion get_log_file to common.sh that let's users get a
   log file so they can write to it any extra information they want to
   about the test as it is running.
5. Updated the README in the tests directory to explain the addtition of
   the get_log_file function.
6. Passed error messages for all tests when doing finalize_tests on
   error so we can figure out what the error might be.
7. Just some general cleanup with extra spaces etc in tests scripts.

In general, most of these tests could also benefit from using the
logging as well. However, I will leave that up to another PR for now.

fixes #20

Signed-off-by: Brian Atkinson <batkinson@lanl.gov>
@bwatkinson bwatkinson merged commit 764e6c7 into MigeljanImeri:xdd-2.0 Sep 13, 2023
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants