Ensure all users can run the unit test cases on the same machine. 99/145199/2
authorVictor Cebollada <v.cebollada@ex1.seri.co.uk>
Mon, 21 Aug 2017 14:28:13 +0000 (15:28 +0100)
committerVictor Cebollada <v.cebollada@ex1.seri.co.uk>
Mon, 21 Aug 2017 14:47:32 +0000 (15:47 +0100)
Change-Id: Ibda920af96500256e99aa690534b980f0080a28a
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
+