From 7d69fafd2ae16cef1c470a81ff12ccc6d065833b Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Thu, 17 May 2018 08:42:11 +0000 Subject: 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 --- bug-1925/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/ -- cgit v1.2.3