From 12578ba672c3a341190b462892e49c9661a68035 Mon Sep 17 00:00:00 2001 From: Florian Franzen Date: Sat, 22 Jan 2022 20:01:54 +0100 Subject: tests: skip flake search test if no git is present --- tests/flake-searching.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/flake-searching.sh b/tests/flake-searching.sh index 6558aff9a..bc55f2bdc 100644 --- a/tests/flake-searching.sh +++ b/tests/flake-searching.sh @@ -1,5 +1,10 @@ source common.sh +if [[ -z $(type -p git) ]]; then + echo "Git not installed; skipping flake search tests" + exit 99 +fi + clearStore cp ./simple.nix ./simple.builder.sh ./config.nix $TEST_HOME -- cgit v1.2.3