Skip to content

Commit

Permalink
Create tmp_dir in current working directory (#28617)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wkobielx authored Jan 29, 2025
1 parent b22b526 commit 081bd6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/llm/accuracy_conformance.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down Expand Up @@ -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)


Expand Down

0 comments on commit 081bd6d

Please sign in to comment.