diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2023-03-16 16:00:20 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2023-03-16 18:43:03 -0400 |
commit | bfb9eb87fe98f96969188df9df866e15800bd55b (patch) | |
tree | 1bb94f3b5aa283e9fd2c294a7bbd458eb6ba3950 /tests/fetchGitSubmodules.sh | |
parent | 7f46ebcf90432a54f5fdec1931d87e5130e68190 (diff) |
Cleanup test skipping
- Try not to put cryptic "99" in many places
Factor out `exit 99` into `skipTest` function
- Alows make sure skipping a test is done with a reason
`skipTest` takes a mandatory argument
- Separate pure conditionals vs side-effectful test skipping.
"require daemon" already had this, but "sandbox support" did not.
Diffstat (limited to 'tests/fetchGitSubmodules.sh')
-rw-r--r-- | tests/fetchGitSubmodules.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/fetchGitSubmodules.sh b/tests/fetchGitSubmodules.sh index 08ccaa3cd..df81232e5 100644 --- a/tests/fetchGitSubmodules.sh +++ b/tests/fetchGitSubmodules.sh @@ -2,10 +2,7 @@ source common.sh set -u -if [[ -z $(type -p git) ]]; then - echo "Git not installed; skipping Git submodule tests" - exit 99 -fi +requireGit clearStore |