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 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
+