From d97b9ade5118bb3ee4f5115a1eec4714358d8566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigbj=C3=B8rn=20Skj=C3=A6ret?= Date: Wed, 28 May 2025 12:49:36 +0200 Subject: [PATCH] correct working directory for all builds ..and change cache file name as per suggestion. --- tests/CMakeLists.txt | 2 +- tests/test-tokenizers-remote.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 669f9fc76..1b24829d9 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -99,7 +99,7 @@ llama_test(test-tokenizer-0 NAME test-tokenizer-0-refact ARGS ${CMAKE llama_test(test-tokenizer-0 NAME test-tokenizer-0-starcoder ARGS ${CMAKE_CURRENT_SOURCE_DIR}/../models/ggml-vocab-starcoder.gguf) if (LLAMA_CURL) - llama_build_and_test(test-tokenizers-remote.cpp WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin) + llama_build_and_test(test-tokenizers-remote.cpp WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}) endif() if (LLAMA_LLGUIDANCE) diff --git a/tests/test-tokenizers-remote.cpp b/tests/test-tokenizers-remote.cpp index 5b6a359f3..a6e2ecdd0 100644 --- a/tests/test-tokenizers-remote.cpp +++ b/tests/test-tokenizers-remote.cpp @@ -47,7 +47,7 @@ static json get_hf_repo_dir(const std::string & hf_repo_with_branch, bool recurs } // we use "=" to avoid clashing with other component, while still being allowed on windows - std::string cached_response_fname = "tree=" + hf_repo + "/" + repo_path + "=" + branch + ".json"; + std::string cached_response_fname = "test_vocab=" + hf_repo + "/" + repo_path + "=" + branch + ".json"; string_replace_all(cached_response_fname, "/", "_"); std::string cached_response_path = fs_get_cache_file(cached_response_fname);