From 8f0b3d55e388a79dc64e81ab3de25cf57bc8c50c Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Mon, 22 Jun 2020 05:38:48 +0200 Subject: [PATCH] FEM: unit tests, use unique dir for each run --- src/Mod/Fem/femtest/app/support_utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Fem/femtest/app/support_utils.py b/src/Mod/Fem/femtest/app/support_utils.py index 47b0847c9c..ed81af4119 100644 --- a/src/Mod/Fem/femtest/app/support_utils.py +++ b/src/Mod/Fem/femtest/app/support_utils.py @@ -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)