summaryrefslogtreecommitdiff
path: root/test/buildtool/file_system
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2023-08-24 18:05:22 +0200
committerOliver Reiche <oliver.reiche@huawei.com>2023-08-24 19:19:43 +0200
commit4de0c7c40397c31a1b61be28c7507d16592282b1 (patch)
treed6f196c26f384b0a2f605a2aeb73b28db976dcb1 /test/buildtool/file_system
parent1208bcc52b83a83f6bd543ca02ad1b270c0ecb88 (diff)
downloadjustbuild-4de0c7c40397c31a1b61be28c7507d16592282b1.tar.gz
tests: Improve error reporting in scripts
Diffstat (limited to 'test/buildtool/file_system')
-rw-r--r--test/buildtool/file_system/create_fs_test_git_bundle.sh5
-rw-r--r--test/buildtool/file_system/create_fs_test_git_bundle_symlinks.sh5
2 files changed, 10 insertions, 0 deletions
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:
# ---