diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2018-05-17 08:42:11 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2018-05-17 08:42:11 +0000 |
commit | 7d69fafd2ae16cef1c470a81ff12ccc6d065833b (patch) | |
tree | 1f74dd8bf0dc6b4936ea1fa29513f987c0813dcb | |
parent | 6c1553d4afc1f32ec47deef28b6fd82cd418dbce (diff) |
bug-1925: Make executable name more unique.
It seems the executable name we generate is not "unique enough", and
can lead to race conditions when the board access is slow and two
validations run in parallel. That's probably because we use
containers, and thus the process ID is always the same between two
runs of the same tests. Try to workaround that by using hostname and
date.
Change-Id: Idfd58feeeaed02a2869a18777b5b6a30e0b53dec
-rwxr-xr-x | bug-1925/build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bug-1925/build.sh b/bug-1925/build.sh index 5d57a49..dda16bf 100755 --- a/bug-1925/build.sh +++ b/bug-1925/build.sh @@ -37,7 +37,7 @@ CFLAGS="-lgfortran -foffload=-lgfortran -fopenmp -static" echo "$(basename $(pwd)): FAIL" > result.txt set -x ${FCC} retval1.f90 -o retval1.exe ${CFLAGS} -OUT=/tmp/retval1.exe.$$ +OUT=/tmp/retval1.exe.$$.$(hostname).$(date +%s-%N) scp retval1.exe $board:${OUT} ls -l ssh $board ls -l /tmp/ |