Fossil SCM
Add TMPDIR to the list of places tester.tcl looks for its tmp
Commit
bb353407c1b5ffbaeb090172d340107303d5d23b587d52802508aa24095d8a40
Parent
72468df99cca38f…
1 file changed
+3
-3
+3
-3
| --- test/tester.tcl | ||
| +++ test/tester.tcl | ||
| @@ -509,11 +509,11 @@ | ||
| 509 | 509 | $::tempRepoPath $repoSeed [file tail [get_script_or_fail]]] |
| 510 | 510 | if {[catch { |
| 511 | 511 | file mkdir $repoPath |
| 512 | 512 | } error] != 0} { |
| 513 | 513 | error "Could not make directory \"$repoPath\",\ |
| 514 | -please set TEMP variable in environment, error: $error" | |
| 514 | +please set TMPDIR or TEMP variable in environment, error: $error" | |
| 515 | 515 | } |
| 516 | 516 | if {![info exists ::tempSavedPwd]} {set ::tempSavedPwd [pwd]}; cd $repoPath |
| 517 | 517 | if {[string length $filename] > 0} { |
| 518 | 518 | exec $::fossilexe new $filename |
| 519 | 519 | exec $::fossilexe open $filename |
| @@ -673,11 +673,11 @@ | ||
| 673 | 673 | set names [list] |
| 674 | 674 | |
| 675 | 675 | # |
| 676 | 676 | # TODO: Add more here, if necessary. |
| 677 | 677 | # |
| 678 | - foreach name [list FOSSIL_TEST_TEMP FOSSIL_TEMP TEMP TMP] { | |
| 678 | + foreach name [list FOSSIL_TEST_TEMP FOSSIL_TEMP TMPDIR TEMP TMP] { | |
| 679 | 679 | lappend names [string toupper $name] [string tolower $name] \ |
| 680 | 680 | [string totitle $name] |
| 681 | 681 | } |
| 682 | 682 | |
| 683 | 683 | # |
| @@ -1116,11 +1116,11 @@ | ||
| 1116 | 1116 | if {[catch { |
| 1117 | 1117 | set tempFile [file join $tempPath temporary.txt] |
| 1118 | 1118 | write_file $tempFile [clock seconds]; file delete $tempFile |
| 1119 | 1119 | } error] != 0} { |
| 1120 | 1120 | error "Could not write file \"$tempFile\" in directory \"$tempPath\",\ |
| 1121 | -please set TEMP variable in environment, error: $error" | |
| 1121 | +please set TMPDIR or TEMP variable in environment, error: $error" | |
| 1122 | 1122 | } |
| 1123 | 1123 | |
| 1124 | 1124 | set tempHomePath [file join $tempPath home_[pid]] |
| 1125 | 1125 | |
| 1126 | 1126 | # Close stdin to avoid errors on wrapped text for narrow terminals. |
| 1127 | 1127 |
| --- test/tester.tcl | |
| +++ test/tester.tcl | |
| @@ -509,11 +509,11 @@ | |
| 509 | $::tempRepoPath $repoSeed [file tail [get_script_or_fail]]] |
| 510 | if {[catch { |
| 511 | file mkdir $repoPath |
| 512 | } error] != 0} { |
| 513 | error "Could not make directory \"$repoPath\",\ |
| 514 | please set TEMP variable in environment, error: $error" |
| 515 | } |
| 516 | if {![info exists ::tempSavedPwd]} {set ::tempSavedPwd [pwd]}; cd $repoPath |
| 517 | if {[string length $filename] > 0} { |
| 518 | exec $::fossilexe new $filename |
| 519 | exec $::fossilexe open $filename |
| @@ -673,11 +673,11 @@ | |
| 673 | set names [list] |
| 674 | |
| 675 | # |
| 676 | # TODO: Add more here, if necessary. |
| 677 | # |
| 678 | foreach name [list FOSSIL_TEST_TEMP FOSSIL_TEMP TEMP TMP] { |
| 679 | lappend names [string toupper $name] [string tolower $name] \ |
| 680 | [string totitle $name] |
| 681 | } |
| 682 | |
| 683 | # |
| @@ -1116,11 +1116,11 @@ | |
| 1116 | if {[catch { |
| 1117 | set tempFile [file join $tempPath temporary.txt] |
| 1118 | write_file $tempFile [clock seconds]; file delete $tempFile |
| 1119 | } error] != 0} { |
| 1120 | error "Could not write file \"$tempFile\" in directory \"$tempPath\",\ |
| 1121 | please set TEMP variable in environment, error: $error" |
| 1122 | } |
| 1123 | |
| 1124 | set tempHomePath [file join $tempPath home_[pid]] |
| 1125 | |
| 1126 | # Close stdin to avoid errors on wrapped text for narrow terminals. |
| 1127 |
| --- test/tester.tcl | |
| +++ test/tester.tcl | |
| @@ -509,11 +509,11 @@ | |
| 509 | $::tempRepoPath $repoSeed [file tail [get_script_or_fail]]] |
| 510 | if {[catch { |
| 511 | file mkdir $repoPath |
| 512 | } error] != 0} { |
| 513 | error "Could not make directory \"$repoPath\",\ |
| 514 | please set TMPDIR or TEMP variable in environment, error: $error" |
| 515 | } |
| 516 | if {![info exists ::tempSavedPwd]} {set ::tempSavedPwd [pwd]}; cd $repoPath |
| 517 | if {[string length $filename] > 0} { |
| 518 | exec $::fossilexe new $filename |
| 519 | exec $::fossilexe open $filename |
| @@ -673,11 +673,11 @@ | |
| 673 | set names [list] |
| 674 | |
| 675 | # |
| 676 | # TODO: Add more here, if necessary. |
| 677 | # |
| 678 | foreach name [list FOSSIL_TEST_TEMP FOSSIL_TEMP TMPDIR TEMP TMP] { |
| 679 | lappend names [string toupper $name] [string tolower $name] \ |
| 680 | [string totitle $name] |
| 681 | } |
| 682 | |
| 683 | # |
| @@ -1116,11 +1116,11 @@ | |
| 1116 | if {[catch { |
| 1117 | set tempFile [file join $tempPath temporary.txt] |
| 1118 | write_file $tempFile [clock seconds]; file delete $tempFile |
| 1119 | } error] != 0} { |
| 1120 | error "Could not write file \"$tempFile\" in directory \"$tempPath\",\ |
| 1121 | please set TMPDIR or TEMP variable in environment, error: $error" |
| 1122 | } |
| 1123 | |
| 1124 | set tempHomePath [file join $tempPath home_[pid]] |
| 1125 | |
| 1126 | # Close stdin to avoid errors on wrapped text for narrow terminals. |
| 1127 |