Ensure all users can run the unit test cases on the same machine. 96/145196/6
authorVictor Cebollada <v.cebollada@ex1.seri.co.uk>
Mon, 21 Aug 2017 14:07:11 +0000 (15:07 +0100)
committerVictor Cebollada <v.cebollada@ex1.seri.co.uk>
Mon, 21 Aug 2017 14:45:49 +0000 (15:45 +0100)
Change-Id: Iba197387621e1c00a1596bda20460b7059c95210
Signed-off-by: Victor Cebollada <v.cebollada@ex1.seri.co.uk>
automated-tests/scripts/tcheadgen.sh

index c7b7700a2d5fcbd29a24199d4ac027459fc8edff..dfd378a30f591a6831e1e556fc275f753d03942d 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
+