Fossil SCM

Fix test for th1 element manipulation: briefly switch off robot-restrict.

danshearer 2026-11-20 14:28 UTC test-suite-new
Commit facf764847b2061931749b1fa3bac0d9ec340265bb145ac68e92639247941bc8
1 file changed +9 -3
+9 -3
--- test/th1.test
+++ test/th1.test
@@ -801,13 +801,19 @@
801801
#fossil test-th-eval "styleHeader {Page Title Here}"
802802
#test th1-header-1 {$RESULT eq {TH_ERROR: repository unavailable}}
803803
804804
###############################################################################
805805
806
-test_in_checkout th1-header-2 {
807
- fossil test-th-eval --open-config "styleHeader {Page Title Here}"
808
-} {[regexp -- {<title>Fossil: Page Title Here</title>} $RESULT]}
806
+# With the default robot-restrict setting, a command-line run gets the
807
+# "Browser Verification" page instead of the header. We turn robot detection
808
+# off just for this one operation, where it isn't relevant anyway.
809
+#
810
+fossil settings robot-restrict off
811
+fossil test-th-eval --open-config "styleHeader {Page Title Here}"
812
+test th1-header-2 {[regexp -- \
813
+ {<title>Unnamed Fossil Project: Page Title Here</title>} $RESULT]}
814
+fossil unset robot-restrict
809815
810816
###############################################################################
811817
812818
#fossil test-th-eval "styleFooter"
813819
#test th1-footer-1 {$RESULT eq {TH_ERROR: repository unavailable}}
814820
--- test/th1.test
+++ test/th1.test
@@ -801,13 +801,19 @@
801 #fossil test-th-eval "styleHeader {Page Title Here}"
802 #test th1-header-1 {$RESULT eq {TH_ERROR: repository unavailable}}
803
804 ###############################################################################
805
806 test_in_checkout th1-header-2 {
807 fossil test-th-eval --open-config "styleHeader {Page Title Here}"
808 } {[regexp -- {<title>Fossil: Page Title Here</title>} $RESULT]}
 
 
 
 
 
 
809
810 ###############################################################################
811
812 #fossil test-th-eval "styleFooter"
813 #test th1-footer-1 {$RESULT eq {TH_ERROR: repository unavailable}}
814
--- test/th1.test
+++ test/th1.test
@@ -801,13 +801,19 @@
801 #fossil test-th-eval "styleHeader {Page Title Here}"
802 #test th1-header-1 {$RESULT eq {TH_ERROR: repository unavailable}}
803
804 ###############################################################################
805
806 # With the default robot-restrict setting, a command-line run gets the
807 # "Browser Verification" page instead of the header. We turn robot detection
808 # off just for this one operation, where it isn't relevant anyway.
809 #
810 fossil settings robot-restrict off
811 fossil test-th-eval --open-config "styleHeader {Page Title Here}"
812 test th1-header-2 {[regexp -- \
813 {<title>Unnamed Fossil Project: Page Title Here</title>} $RESULT]}
814 fossil unset robot-restrict
815
816 ###############################################################################
817
818 #fossil test-th-eval "styleFooter"
819 #test th1-footer-1 {$RESULT eq {TH_ERROR: repository unavailable}}
820

Keyboard Shortcuts

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