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/gc-runtime.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/gc-runtime.sh')
-rw-r--r-- | tests/gc-runtime.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gc-runtime.sh b/tests/gc-runtime.sh index 6094959cb..dc1826a55 100644 --- a/tests/gc-runtime.sh +++ b/tests/gc-runtime.sh @@ -4,7 +4,7 @@ case $system in *linux*) ;; *) - exit 99; + skipTest "Not running Linux"; esac set -m # enable job control, needed for kill |