Repository navigation
Stop tests from skipping silently, and fix the Windows test PATH - #29
Merged
Merged
Conversation
test_demo_features.py exited with 0 when pytest skipped some of its tests, so the MHKiT writer tests were left out without a trace wherever MHKiT is not installed, including continuous integration. Run as a script, it now returns the skip code when any test was skipped. The Chrono jobs install MHKiT from the requirements file of the demo feature tools, so all of its tests run.
The test environment was set as "PATH=<dir>;<dir>;...", which CMake reads as a list of entries, so PATH became the first directory alone. The directories are now put in front of the PATH of the test run (CMake 3.22 and newer); for CMake 3.21 the separators are escaped so that the value stays one entry.
The step that deletes the report sources ran whenever both Chrono jobs had passed, also when the PDF job itself had failed or been cancelled. A re-run of the PDF job then had nothing to convert. The sources are now deleted only after the reports were converted and uploaded. The steps that install Ubuntu packages get a limit of 10 minutes. In one run two of them hung until the 30-minute limit of their jobs; they normally take under two minutes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two defects in the test infrastructure.
Silent skips. test_demo_features.py exited with 0 when pytest skipped some
of its tests, so the MHKiT writer tests were left out wherever MHKiT is not
installed, including continuous integration. Run as a script, it now returns
the skip code when any test was skipped, and the Chrono jobs install MHKiT
from data/demos/run_seastack/features/requirements.txt.
Windows test PATH. The environment of the C++ unit tests was set as
;;...", which CMake reads as a list of entries, so PATH"PATH=
became the first directory alone. The DLL directories are now put in front
of the PATH of the test run.
Without MHKiT installed, a local ctest run now shows
test_demo_features_python as skipped instead of passed.