aboutsummaryrefslogtreecommitdiff
path: root/tests/flakes/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/flakes/common.sh')
-rw-r--r--tests/flakes/common.sh9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/flakes/common.sh b/tests/flakes/common.sh
index 9d79080cd..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
@@ -66,7 +59,7 @@ EOF
createGitRepo() {
local repo="$1"
- local extraArgs="$2"
+ local extraArgs="${2-}"
rm -rf $repo $repo.tmp
mkdir -p $repo