all.sh: move crypto submodule check to pre_check_git
diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh
index eebcfeb..4ef950a 100755
--- a/tests/scripts/all.sh
+++ b/tests/scripts/all.sh
@@ -112,11 +112,6 @@
fi
}
-if ! [ -f crypto/Makefile ]; then
- echo "Please initialize the crypto submodule" >&2
- exit 1
-fi
-
pre_initialize_variables () {
CONFIG_H='include/mbedtls/config.h'
CONFIG_BAK="$CONFIG_H.bak"
@@ -401,6 +396,10 @@
exit 1
fi
fi
+ if ! [ -f crypto/Makefile ]; then
+ echo "Please initialize the crypto submodule" >&2
+ exit 1
+ fi
}
pre_setup_keep_going () {