Fossil SCM

Place the test log file in the current directory, not the directory containing the test files.

mistachkin 2014-06-19 03:56 trunk
Commit a675783882d629080b061bd488de1ba85c5ae7c8
1 file changed +3 -2
+3 -2
--- test/tester.tcl
+++ test/tester.tcl
@@ -21,10 +21,11 @@
2121
#
2222
# Where ../test/tester.tcl is the name of this file and ../bld/fossil
2323
# is the name of the executable to be tested.
2424
#
2525
26
+set testrundir [pwd]
2627
set testdir [file normalize [file dir $argv0]]
2728
set fossilexe [file normalize [lindex $argv 0]]
2829
set argv [lrange $argv 1 end]
2930
3031
set i [lsearch $argv -halt]
@@ -59,11 +60,11 @@
5960
6061
# start protocol
6162
#
6263
proc protInit {cmd} {
6364
if {$::PROT} {
64
- set out [open [file join $::testdir prot] w]
65
+ set out [open [file join $::testrundir prot] w]
6566
fconfigure $out -translation platform
6667
puts $out "starting tests with: $cmd"
6768
close $out
6869
}
6970
}
@@ -71,11 +72,11 @@
7172
# write protocol
7273
#
7374
proc protOut {msg} {
7475
puts stdout $msg
7576
if {$::PROT} {
76
- set out [open [file join $::testdir prot] a]
77
+ set out [open [file join $::testrundir prot] a]
7778
fconfigure $out -translation platform
7879
puts $out $msg
7980
close $out
8081
}
8182
}
8283
--- test/tester.tcl
+++ test/tester.tcl
@@ -21,10 +21,11 @@
21 #
22 # Where ../test/tester.tcl is the name of this file and ../bld/fossil
23 # is the name of the executable to be tested.
24 #
25
 
26 set testdir [file normalize [file dir $argv0]]
27 set fossilexe [file normalize [lindex $argv 0]]
28 set argv [lrange $argv 1 end]
29
30 set i [lsearch $argv -halt]
@@ -59,11 +60,11 @@
59
60 # start protocol
61 #
62 proc protInit {cmd} {
63 if {$::PROT} {
64 set out [open [file join $::testdir prot] w]
65 fconfigure $out -translation platform
66 puts $out "starting tests with: $cmd"
67 close $out
68 }
69 }
@@ -71,11 +72,11 @@
71 # write protocol
72 #
73 proc protOut {msg} {
74 puts stdout $msg
75 if {$::PROT} {
76 set out [open [file join $::testdir prot] a]
77 fconfigure $out -translation platform
78 puts $out $msg
79 close $out
80 }
81 }
82
--- test/tester.tcl
+++ test/tester.tcl
@@ -21,10 +21,11 @@
21 #
22 # Where ../test/tester.tcl is the name of this file and ../bld/fossil
23 # is the name of the executable to be tested.
24 #
25
26 set testrundir [pwd]
27 set testdir [file normalize [file dir $argv0]]
28 set fossilexe [file normalize [lindex $argv 0]]
29 set argv [lrange $argv 1 end]
30
31 set i [lsearch $argv -halt]
@@ -59,11 +60,11 @@
60
61 # start protocol
62 #
63 proc protInit {cmd} {
64 if {$::PROT} {
65 set out [open [file join $::testrundir prot] w]
66 fconfigure $out -translation platform
67 puts $out "starting tests with: $cmd"
68 close $out
69 }
70 }
@@ -71,11 +72,11 @@
72 # write protocol
73 #
74 proc protOut {msg} {
75 puts stdout $msg
76 if {$::PROT} {
77 set out [open [file join $::testrundir prot] a]
78 fconfigure $out -translation platform
79 puts $out $msg
80 close $out
81 }
82 }
83

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button