Fossil SCM
Fixing the merge_renames test; fossil was using $HOME somehow. I noticed it running the test in an environment without a valid $HOME path (the nix package building). fossil refused to run the 'fossil new' inside the merge_renames test.
Commit
bf480a29a6877bedd57e29dd555e304e773c3efc
Parent
107e605f416b455…
1 file changed
+6
| --- test/merge_renames.test | ||
| +++ test/merge_renames.test | ||
| @@ -7,10 +7,16 @@ | ||
| 7 | 7 | puts res=$res |
| 8 | 8 | if {![regexp {use --repository} $res]} { |
| 9 | 9 | puts stderr "Cannot run this test within an open checkout" |
| 10 | 10 | return |
| 11 | 11 | } |
| 12 | + | |
| 13 | + | |
| 14 | +# Fossil will write data on $HOME, running 'fossil new' here. | |
| 15 | +# We need not to clutter the $HOME of the test caller. | |
| 16 | +set env(HOME) [pwd] | |
| 17 | + | |
| 12 | 18 | |
| 13 | 19 | ###################################### |
| 14 | 20 | # Test 1 # |
| 15 | 21 | # Reported: Ticket [554f44ee74e3d] # |
| 16 | 22 | ###################################### |
| 17 | 23 |
| --- test/merge_renames.test | |
| +++ test/merge_renames.test | |
| @@ -7,10 +7,16 @@ | |
| 7 | puts res=$res |
| 8 | if {![regexp {use --repository} $res]} { |
| 9 | puts stderr "Cannot run this test within an open checkout" |
| 10 | return |
| 11 | } |
| 12 | |
| 13 | ###################################### |
| 14 | # Test 1 # |
| 15 | # Reported: Ticket [554f44ee74e3d] # |
| 16 | ###################################### |
| 17 |
| --- test/merge_renames.test | |
| +++ test/merge_renames.test | |
| @@ -7,10 +7,16 @@ | |
| 7 | puts res=$res |
| 8 | if {![regexp {use --repository} $res]} { |
| 9 | puts stderr "Cannot run this test within an open checkout" |
| 10 | return |
| 11 | } |
| 12 | |
| 13 | |
| 14 | # Fossil will write data on $HOME, running 'fossil new' here. |
| 15 | # We need not to clutter the $HOME of the test caller. |
| 16 | set env(HOME) [pwd] |
| 17 | |
| 18 | |
| 19 | ###################################### |
| 20 | # Test 1 # |
| 21 | # Reported: Ticket [554f44ee74e3d] # |
| 22 | ###################################### |
| 23 |