aboutsummaryrefslogtreecommitdiffstats
path: root/test/bootstrap
diff options
context:
space:
mode:
authorMichele Locati <michele@locati.it>2018-03-19 16:11:54 +0100
committerMichele Locati <michele@locati.it>2018-03-19 16:11:54 +0100
commite06f9133700ea15e13d5a84871e170651772cbab (patch)
tree67cbd6f188ec4c37002750288af778bc2e1e5ca5 /test/bootstrap
parent51eb63f8a10813512e539198671f2b30d4cfe37b (diff)
downloadincremental-git-filter-branch-e06f9133700ea15e13d5a84871e170651772cbab.tar.gz
incremental-git-filter-branch-e06f9133700ea15e13d5a84871e170651772cbab.tar.bz2
incremental-git-filter-branch-e06f9133700ea15e13d5a84871e170651772cbab.zip
Disable flock in tests when it's not available
Diffstat (limited to 'test/bootstrap')
-rwxr-xr-xtest/bootstrap6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/bootstrap b/test/bootstrap
index 1faa749..24d829b 100755
--- a/test/bootstrap
+++ b/test/bootstrap
@@ -26,6 +26,12 @@ then
exit 1
fi
+BIN_MAIN_OPTIONS=''
+if ! command -v flock >/dev/null
+then
+ BIN_MAIN_OPTIONS='${BIN_MAIN_OPTIONS} --no-lock'
+fi
+
initializeRepositories () {
rm -rf "${DIR_TEMP}"
mkdir "${DIR_TEMP}"

© 2014-2024 Faster IT GmbH | imprint | privacy policy