]
Gil Shinar reassigned OVIRT-899:
--------------------------------
Assignee: Daniel Belenky (was: infra)
Create locking on experimental flow
-----------------------------------
Key: OVIRT-899
URL:
https://ovirt-jira.atlassian.net/browse/OVIRT-899
Project: oVirt - virtualization made easy
Issue Type: Task
Reporter: Gil Shinar
Assignee: Daniel Belenky
In order to make experimental flow atomic, we need to do as follows:
in deploy.sh script and in start_testing_latest.sh we need to add a loop in the beginning
of each script that does the following:
*while 1:
do
is_locked=$((echo aaa > my.lock) 2> /dev/null || echo is locked)
if [[ -z $is_locked ]]; then
break
else
sleep 5
fi
done*
Wrap the whole script with a trap so in the end if each script we will be able to remove
my.lock no matter what happened.