From e06f9133700ea15e13d5a84871e170651772cbab Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 19 Mar 2018 16:11:54 +0100 Subject: Disable flock in tests when it's not available --- test/bootstrap | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/bootstrap') 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}" -- cgit v1.2.3