[ 
https://ovirt-jira.atlassian.net/browse/OVIRT-899?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

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.



--
This message was sent by Atlassian JIRA
(v1000.620.0#100023)
_______________________________________________
Infra mailing list
Infra@ovirt.org
http://lists.ovirt.org/mailman/listinfo/infra

Reply via email to