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.

preben 2023-11-17 17:42 testing-improvements
Commit dc1836edb68ab8909993dc8356ef7e7282c4ac9b345b781960f4797d53defbdb
1 file changed +3 -7
--- test/symlinks.test
+++ test/symlinks.test
@@ -23,22 +23,18 @@
2323
if {$is_windows} {
2424
puts "Symlinks are not supported on Windows."
2525
test_cleanup_then_return
2626
}
2727
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
-
3528
require_no_open_checkout
3629
3730
###############################################################################
3831
3932
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
4036
4137
fossil test-th-eval --open-config {repository}
4238
set repository [normalize_result]
4339
4440
if {[string length $repository] == 0} {
4541
--- 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

Keyboard Shortcuts

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