diff options
author | Michele Locati <michele@locati.it> | 2018-03-19 16:11:54 +0100 |
---|---|---|
committer | Michele Locati <michele@locati.it> | 2018-03-19 16:11:54 +0100 |
commit | e06f9133700ea15e13d5a84871e170651772cbab (patch) | |
tree | 67cbd6f188ec4c37002750288af778bc2e1e5ca5 /test/bootstrap | |
parent | 51eb63f8a10813512e539198671f2b30d4cfe37b (diff) | |
download | incremental-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-x | test/bootstrap | 6 |
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}" |