Skip to content
Snippets Groups Projects
Commit e1c907eb authored by Mikhail Teterin's avatar Mikhail Teterin
Browse files

www/websh: attempt to debug test-failures on Poudriere

When the tests succeed, they'll continue to succeed quietly.  However,
when they fail -- as they've been doing during package-building for
FreeBSD-14 for a few months now -- the output will now contain more
information, which will, hopefully, allow me to fix them for good.
parent 14082280
No related branches found
No related tags found
No related merge requests found
The two cookiecontext-tests fail repeatedly on Poudriere, but I'm
unable to reproduce the failures on my own FreeBSD-14 box. These
changes will make the test-failures more verbose, which might give
me the clue necessary to fix them properly.
--- ../tests/cookiecontext.test 2009-09-11 04:02:42.000000000 -0400
+++ ../tests/cookiecontext.test 2023-05-01 22:47:41.210491000 -0400
@@ -52,6 +52,10 @@
set time [clock scan $timestring]
set result [expr {($now - $time) < 2}]
+ if {$result != 1} {
+ set result "$timestring: $now vs. $time"
+ }
+ set result
} else {
- set result 0
+ set result "Text: <<$text>>, Now: <<$now>>"
}
@@ -86,6 +90,10 @@
set time [clock scan $timestring]
set result [expr {($now + 86400 - $time) < 2}]
+ if {$result != 1} {
+ set result "$timestring: $now vs. $time"
+ }
+ set result
} else {
- set result 0
+ set result "Text: <<$text1a>>, Now: <<$now>>"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment