From aac6ed621f7534fa244f5ad75a5cd91f53e71853 Mon Sep 17 00:00:00 2001 From: Dan Kennedy Date: Tue, 12 Mar 2024 18:04:40 +0000 Subject: [PATCH] Have testrunner.tcl have each test store its temp files in its working directory. To avoid unlikely, but possible, collisions. --- test/testrunner.tcl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/testrunner.tcl b/test/testrunner.tcl index daf7457170..7dbfc251de 100644 --- a/test/testrunner.tcl +++ b/test/testrunner.tcl @@ -994,6 +994,11 @@ proc launch_another_job {iJob} { close $fd } + set job_cmd $job(cmd) + if {$TRG(platform)!="win"} { + set job_cmd "export SQLITE_TMPDIR=\"[file normalize $dir]\"\n$job_cmd" + } + if { $TRG(dryrun) } { mark_job_as_finished $job(jobid) "" done 0 @@ -1008,7 +1013,7 @@ proc launch_another_job {iJob} { set pwd [pwd] cd $dir set fd [open $TRG(run) w] - puts $fd $job(cmd) + puts $fd $job_cmd close $fd set fd [open "|$TRG(runcmd) 2>@1" r] cd $pwd -- 2.11.4.GIT