aboutsummaryrefslogtreecommitdiff
path: root/tests/flakes/common.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/flakes/common.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/flakes/common.sh')
-rw-r--r--tests/flakes/common.sh7
1 files changed, 0 insertions, 7 deletions
diff --git a/tests/flakes/common.sh b/tests/flakes/common.sh
index 58616ac4c..427abcdde 100644
--- a/tests/flakes/common.sh
+++ b/tests/flakes/common.sh
@@ -2,13 +2,6 @@ source ../common.sh
registry=$TEST_ROOT/registry.json
-requireGit() {
- if [[ -z $(type -p git) ]]; then
- echo "Git not installed; skipping flake tests"
- exit 99
- fi
-}
-
writeSimpleFlake() {
local flakeDir="$1"
cat > $flakeDir/flake.nix <<EOF