From 00c4b090c17012c29c83126e802dced85e383923 Mon Sep 17 00:00:00 2001
From: Mohammad Azim Khan <Azim.Khan@arm.com>
Date: Thu, 28 Jun 2018 13:10:19 +0100
Subject: [PATCH] Change intermediate data file extension to .datax

---
 tests/Makefile                      | 4 ++--
 tests/scripts/generate_test_code.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/Makefile b/tests/Makefile
index e8091cc77..e344635f9 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -205,9 +205,9 @@ $(BINARIES): %$(EXEXT): %.c $(DEP)
 
 clean:
 ifndef WINDOWS
-	rm -rf $(APPS) *.c *.data TESTS
+	rm -rf $(APPS) *.c *.datax TESTS
 else
-	del /Q /F *.c *.exe *.data
+	del /Q /F *.c *.exe *.datax
 	rmdir /Q /S TESTS
 endif
 
diff --git a/tests/scripts/generate_test_code.py b/tests/scripts/generate_test_code.py
index c62b5b9a8..ccb2d5fe1 100755
--- a/tests/scripts/generate_test_code.py
+++ b/tests/scripts/generate_test_code.py
@@ -732,7 +732,7 @@ def check_cmd():
     data_name = os.path.splitext(data_file_name)[0]
 
     out_c_file = os.path.join(args.out_dir, data_name + '.c')
-    out_data_file = os.path.join(args.out_dir, data_file_name)
+    out_data_file = os.path.join(args.out_dir, data_name + '.datax')
 
     out_c_file_dir = os.path.dirname(out_c_file)
     out_data_file_dir = os.path.dirname(out_data_file)