From 4db755c237f21c86a71ee4771691946cf01d80ee Mon Sep 17 00:00:00 2001 From: Victor Cebollada Date: Mon, 21 Aug 2017 15:25:29 +0100 Subject: [PATCH] Ensure all users can run the unit test cases on the same machine. Change-Id: I6211441cf6cbee75bfdf39211e411ca430a7368a Signed-off-by: Victor Cebollada --- automated-tests/scripts/tcheadgen.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/automated-tests/scripts/tcheadgen.sh b/automated-tests/scripts/tcheadgen.sh index c7b7700..dfd378a 100755 --- a/automated-tests/scripts/tcheadgen.sh +++ b/automated-tests/scripts/tcheadgen.sh @@ -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 + -- 2.7.4