Fossil SCM
In the symlinks test, this used to require allow-symlinks being set before testing. With the current temporary repositories, it is safe to enable allow-symlinks locally.
Commit
dc1836edb68ab8909993dc8356ef7e7282c4ac9b345b781960f4797d53defbdb
Parent
62838cc7f23888b…
1 file changed
+3
-7
+3
-7
| --- test/symlinks.test | ||
| +++ test/symlinks.test | ||
| @@ -23,22 +23,18 @@ | ||
| 23 | 23 | if {$is_windows} { |
| 24 | 24 | puts "Symlinks are not supported on Windows." |
| 25 | 25 | test_cleanup_then_return |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | -fossil test-th-eval --open-config "setting allow-symlinks" | |
| 29 | - | |
| 30 | -if {![string is true -strict [normalize_result]]} { | |
| 31 | - puts "Symlinks are not enabled." | |
| 32 | - test_cleanup_then_return | |
| 33 | -} | |
| 34 | - | |
| 35 | 28 | require_no_open_checkout |
| 36 | 29 | |
| 37 | 30 | ############################################################################### |
| 38 | 31 | |
| 39 | 32 | test_setup; set rootDir [file normalize [pwd]] |
| 33 | + | |
| 34 | +# Using tempHomePath, allow-symlinks will always be off at this point. | |
| 35 | +fossil set allow-symlinks on | |
| 40 | 36 | |
| 41 | 37 | fossil test-th-eval --open-config {repository} |
| 42 | 38 | set repository [normalize_result] |
| 43 | 39 | |
| 44 | 40 | if {[string length $repository] == 0} { |
| 45 | 41 |
| --- test/symlinks.test | |
| +++ test/symlinks.test | |
| @@ -23,22 +23,18 @@ | |
| 23 | if {$is_windows} { |
| 24 | puts "Symlinks are not supported on Windows." |
| 25 | test_cleanup_then_return |
| 26 | } |
| 27 | |
| 28 | fossil test-th-eval --open-config "setting allow-symlinks" |
| 29 | |
| 30 | if {![string is true -strict [normalize_result]]} { |
| 31 | puts "Symlinks are not enabled." |
| 32 | test_cleanup_then_return |
| 33 | } |
| 34 | |
| 35 | require_no_open_checkout |
| 36 | |
| 37 | ############################################################################### |
| 38 | |
| 39 | test_setup; set rootDir [file normalize [pwd]] |
| 40 | |
| 41 | fossil test-th-eval --open-config {repository} |
| 42 | set repository [normalize_result] |
| 43 | |
| 44 | if {[string length $repository] == 0} { |
| 45 |
| --- test/symlinks.test | |
| +++ test/symlinks.test | |
| @@ -23,22 +23,18 @@ | |
| 23 | if {$is_windows} { |
| 24 | puts "Symlinks are not supported on Windows." |
| 25 | test_cleanup_then_return |
| 26 | } |
| 27 | |
| 28 | require_no_open_checkout |
| 29 | |
| 30 | ############################################################################### |
| 31 | |
| 32 | test_setup; set rootDir [file normalize [pwd]] |
| 33 | |
| 34 | # Using tempHomePath, allow-symlinks will always be off at this point. |
| 35 | fossil set allow-symlinks on |
| 36 | |
| 37 | fossil test-th-eval --open-config {repository} |
| 38 | set repository [normalize_result] |
| 39 | |
| 40 | if {[string length $repository] == 0} { |
| 41 |