From 94ddfdb01faa919916fdece6b129227d15397067 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Sat, 21 Jan 2017 10:37:24 +0100 Subject: [PATCH] FEM: unit tests, make all FEM unit test in one directory in tmp directory --- src/Mod/Fem/TestFem.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Fem/TestFem.py b/src/Mod/Fem/TestFem.py index e3e90d014..7ae79038b 100644 --- a/src/Mod/Fem/TestFem.py +++ b/src/Mod/Fem/TestFem.py @@ -37,7 +37,7 @@ import unittest mesh_name = 'Mesh' home_path = FreeCAD.getHomePath() -temp_dir = tempfile.gettempdir() +temp_dir = tempfile.gettempdir() + '/FEM_unittests' test_file_dir = home_path + 'Mod/Fem/test_files/ccx' static_base_name = 'cube_static' @@ -659,12 +659,12 @@ def create_test_results(): ''' -update the results in FEM untit tests: +update the results of FEM unit tests: import TestFem TestFem.create_test_results() -copy result files from FEM test directories into the src dirctory +copy result files from your_temp_directory/FEM_unittests/ test directories into the src dirctory compare the results with git difftool run make start FreeCAD and run FEM unit test