Ensure all users can run the unit test cases on the same machine. 98/145198/2
authorVictor Cebollada <v.cebollada@ex1.seri.co.uk>
Mon, 21 Aug 2017 14:25:29 +0000 (15:25 +0100)
committerVictor Cebollada <v.cebollada@ex1.seri.co.uk>
Mon, 21 Aug 2017 14:41:32 +0000 (15:41 +0100)
Change-Id: I6211441cf6cbee75bfdf39211e411ca430a7368a
Signed-off-by: Victor Cebollada <v.cebollada@ex1.seri.co.uk>
automated-tests/scripts/tcheadgen.sh

index c7b7700..dfd378a 100755 (executable)
@@ -6,7 +6,7 @@ if [[ -z $1 ]]; then
 fi
 
 FILE="$PWD/$1"
-TFILE="/tmp/retr.csv"
+TFILE="/tmp/retr.csv$$"
 HEADER_NAME=$(echo $1 | tr '[:lower:]' '[:upper:]' | sed -e 's/-/_/g' -e 's/\./_/')
 SCRIPT_DIR="$(cd "$(dirname $0)" && pwd)"
 
@@ -69,3 +69,5 @@ print "};"
 print ""
 print "#endif // __" HEADER_NAME "__"
 }' $TFILE > $FILE
+unlink $TFILE
+