File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 21
21
import os
22
22
import platform
23
23
import re
24
+ import shutil
24
25
import subprocess
25
26
import sys
26
- import tempfile
27
27
import socket
28
28
import glob
29
29
import pipes
@@ -326,13 +326,15 @@ config.swift_frontend_test_options = os.environ.get('SWIFT_FRONTEND_TEST_OPTIONS
326
326
config .swift_driver_test_options = os .environ .get ('SWIFT_DRIVER_TEST_OPTIONS' , '' )
327
327
config .sil_test_options = os .environ .get ('SIL_TEST_OPTIONS' , '' )
328
328
329
- clang_module_cache_path = tempfile .mkdtemp (prefix = "swift-testsuite-clang-module-cache" )
329
+ clang_module_cache_path = config .swift_test_results_dir + "/clang-module-cache"
330
+ shutil .rmtree (clang_module_cache_path , ignore_errors = True )
330
331
mcp_opt = "-module-cache-path %r" % clang_module_cache_path
331
332
clang_mcp_opt = "-fmodules-cache-path=%r" % clang_module_cache_path
332
333
lit_config .note ("Using Clang module cache: " + clang_module_cache_path )
333
334
lit_config .note ("Using test results dir: " + config .swift_test_results_dir )
334
335
335
- completion_cache_path = tempfile .mkdtemp (prefix = "swift-testsuite-completion-cache" )
336
+ completion_cache_path = config .swift_test_results_dir + "/completion-cache"
337
+ shutil .rmtree (completion_cache_path , ignore_errors = True )
336
338
ccp_opt = "-completion-cache-path %r" % completion_cache_path
337
339
lit_config .note ("Using code completion cache: " + completion_cache_path )
338
340
You can’t perform that action at this time.
0 commit comments