Skip to content

Commit

Permalink
FEM: unit tests, use unique dir for each run
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Jun 22, 2020
1 parent 6c74b78 commit 32d4014
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/Fem/femtest/app/support_utils.py
Expand Up @@ -41,7 +41,10 @@ def get_fem_test_home_dir(

def get_fem_test_tmp_dir(
):
temp_dir = join(tempfile.gettempdir(), "FEM_unittests")
from uuid import uuid4
_unique_id = str(uuid4())[-12:]
print(_unique_id)
temp_dir = join(tempfile.gettempdir(), "FEM_unittests", _unique_id)
if not os.path.exists(temp_dir):
os.makedirs(temp_dir)
return(temp_dir)
Expand Down

0 comments on commit 32d4014

Please sign in to comment.