From 081bd6def6857153afafe0f2e1a62433e7da5d1a Mon Sep 17 00:00:00 2001
From: Wiktor Kobiela <wiktor.kobiela@intel.com>
Date: Wed, 29 Jan 2025 12:41:06 +0100
Subject: [PATCH] Create tmp_dir in current working directory (#28617)

Update for llm_accuracy tests, currently running on Windows in shadow
mode

Creating tmp folder with models in curent workdir should help resolve
CVS-160974, as regardless of test crash/failure workdir will be cleaned
at the end of the pipeline
---
 tests/llm/accuracy_conformance.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/llm/accuracy_conformance.py b/tests/llm/accuracy_conformance.py
index 4c6a1e140e597b..16d42fbd24a18b 100644
--- a/tests/llm/accuracy_conformance.py
+++ b/tests/llm/accuracy_conformance.py
@@ -33,8 +33,8 @@
     "INT4": 0.05,
 }
 
-tmp_dir = tempfile.mkdtemp()
-
+tmp_dir = tempfile.mkdtemp(dir=os.getcwd())
+logger.info(f"Created temporary directory: {tmp_dir}")
 
 def init_test_scope():
     test_scope = []
@@ -86,7 +86,7 @@ def init_test_scope():
 
 
 def teardown_module():
-    logger.info("Remove models")
+    logger.info(f"Deleting temporary directory: {tmp_dir}")
     shutil.rmtree(tmp_dir)