From 4de0c7c40397c31a1b61be28c7507d16592282b1 Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Thu, 24 Aug 2023 18:05:22 +0200 Subject: tests: Improve error reporting in scripts --- test/buildtool/file_system/create_fs_test_git_bundle.sh | 5 +++++ test/buildtool/file_system/create_fs_test_git_bundle_symlinks.sh | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'test/buildtool/file_system') diff --git a/test/buildtool/file_system/create_fs_test_git_bundle.sh b/test/buildtool/file_system/create_fs_test_git_bundle.sh index 7958546c..d9731c10 100644 --- a/test/buildtool/file_system/create_fs_test_git_bundle.sh +++ b/test/buildtool/file_system/create_fs_test_git_bundle.sh @@ -15,6 +15,11 @@ set -e +if ! command -v git >/dev/null; then + echo "git is required to run this script." + exit 1 +fi + # --- # Structure of test_repo: # --- diff --git a/test/buildtool/file_system/create_fs_test_git_bundle_symlinks.sh b/test/buildtool/file_system/create_fs_test_git_bundle_symlinks.sh index bf2ab8c5..b64076ad 100644 --- a/test/buildtool/file_system/create_fs_test_git_bundle_symlinks.sh +++ b/test/buildtool/file_system/create_fs_test_git_bundle_symlinks.sh @@ -15,6 +15,11 @@ set -e +if ! command -v git >/dev/null; then + echo "git is required to run this script." + exit 1 +fi + # --- # Structure of test_repo_symlinks: # --- -- cgit v1.2.3