diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2017-10-19 22:59:17 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-10-19 22:59:17 +0000 |
commit | 7f69c198eefdbd5576cc52c23d0ad696e55a0df0 (patch) | |
tree | 130b3b48a0b80403e21306849e625a25377c87bf /docs/pre-hook.sh | |
parent | eef634068254cbe39ce2ba1a566996977e187f7a (diff) |
Update git submodules
* Update docs/submodules/fuel from branch 'stable/euphrates'
- Merge "lib.sh: Fix locals override in nested invocations" into stable/euphrates
- lib.sh: Fix locals override in nested invocations
'wait_for' bash function is nested in another 'wait_for' call in some
places, which leads to inner calls interfering with outer calls by
overriding the locally scoped variables, including the 'attempt'
internal counter. In some cases, the outer 'wait_for' would exit
after a single attempt.
Fix that by running all contents of `wait_for` inside a subshell,
which inherits outer calls variables, but does not override them
when the inner call is finished.
Change-Id: I450eda3d023af2380c61ee930071fbfc393a5645
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 2776ab9d850e764a92c30c858befc48e474f6dd4)
Diffstat (limited to 'docs/pre-hook.sh')
0 files changed, 0 insertions, 0 deletions