jjb/common: Fix race condition when using grep and tr 87/12587/3
authorLoys Ollivier <lollivier@baylibre.com>
Thu, 14 Dec 2017 10:31:20 +0000 (11:31 +0100)
committerLoys Ollivier <lollivier@baylibre.com>
Fri, 15 Dec 2017 10:08:52 +0000 (11:08 +0100)
commit7f61f12d910291676dc5a90e2b9bf7874d58843b
treeefcea7cf0d08ea7054e33d249ab82881c238dc3e
parent712b17b970b69dce76f3203557997ec42dcda845
jjb/common: Fix race condition when using grep and tr

when using grep + tr to find board availability, status, a race
condition happens sometimes. When it happens the job is stuck and
timeout fails.

Fix it by calling sequentially grep then tr and not piping.

Change-Id: Ib1322e280900b62abdd827992b42183024cd094c
Signed-off-by: Loys Ollivier <lollivier@baylibre.com>
jjb/common/include-agl-lava-jobs-submit.sh
jjb/common/include-agl-lava-labs-prepare.sh