aboutsummaryrefslogtreecommitdiff
path: root/tests/plugins.sh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-03-16 16:00:20 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-03-16 18:43:03 -0400
commitbfb9eb87fe98f96969188df9df866e15800bd55b (patch)
tree1bb94f3b5aa283e9fd2c294a7bbd458eb6ba3950 /tests/plugins.sh
parent7f46ebcf90432a54f5fdec1931d87e5130e68190 (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/plugins.sh')
-rw-r--r--tests/plugins.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/plugins.sh b/tests/plugins.sh
index 805f49f01..baf71a362 100644
--- a/tests/plugins.sh
+++ b/tests/plugins.sh
@@ -1,8 +1,7 @@
source common.sh
if [[ $BUILD_SHARED_LIBS != 1 ]]; then
- echo "plugins are not supported"
- exit 99
+ skipTest "Plugins are not supported"
fi
res=$(nix --option setting-set true --option plugin-files $PWD/plugins/libplugintest* eval --expr builtins.anotherNull)