webapps.mason.report: fix and tc for the stack underflow error in build reports
parent
924fc60e30
commit
d465924396
|
@ -0,0 +1,7 @@
|
|||
USING: accessors stack-checker tools.test webapps.mason.report ;
|
||||
IN: webapps.mason.report.tests
|
||||
|
||||
! <build-report-action>
|
||||
{ ( -- x ) } [
|
||||
<build-report-action> display>> infer
|
||||
] unit-test
|
|
@ -4,18 +4,17 @@ USING: accessors furnace.actions http.server.responses kernel
|
|||
urls xml.syntax webapps.mason.backend webapps.mason.utils ;
|
||||
IN: webapps.mason.report
|
||||
|
||||
: <build-report-action> ( -- action )
|
||||
<action>
|
||||
[ validate-os/cpu ] >>init
|
||||
[
|
||||
: build-report ( -- response )
|
||||
[
|
||||
current-builder [
|
||||
last-report>> <html-content>
|
||||
] [
|
||||
<404>
|
||||
] if
|
||||
] with-mason-db
|
||||
] >>display ;
|
||||
] [ <404> ] if*
|
||||
] with-mason-db ;
|
||||
|
||||
: <build-report-action> ( -- action )
|
||||
<action>
|
||||
[ validate-os/cpu ] >>init
|
||||
[ build-report ] >>display ;
|
||||
|
||||
: report-link ( builder -- xml )
|
||||
[ URL" report" ] dip
|
||||
|
|
Loading…
Reference in New Issue