builder: only email the last 100 lines of the test-log
parent
a647a02737
commit
6281e0a95d
|
@ -137,7 +137,7 @@ SYMBOL: build-status
|
|||
|
||||
bootstrap [ "Bootstrap error" print "../boot-log" cat ] run-or-bail
|
||||
|
||||
builder-test [ "Test error" print "../test-log" cat ] run-or-bail
|
||||
builder-test [ "Test error" print "../test-log" 100 cat-n ] run-or-bail
|
||||
|
||||
"../test-log" delete-file
|
||||
|
||||
|
|
|
@ -83,4 +83,19 @@ TUPLE: process* arguments stdin stdout stderr timeout ;
|
|||
|
||||
USING: bootstrap.image bootstrap.image.download io.streams.null ;
|
||||
|
||||
: retrieve-image ( -- ) [ my-arch download-image ] with-null-stream ;
|
||||
: retrieve-image ( -- ) [ my-arch download-image ] with-null-stream ;
|
||||
|
||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
: longer? ( seq seq -- ? ) [ length ] 2apply > ;
|
||||
|
||||
: maybe-tail* ( seq n -- seq )
|
||||
2dup longer?
|
||||
[ tail* ]
|
||||
[ drop ]
|
||||
if ;
|
||||
|
||||
: cat-n ( file n -- )
|
||||
[ file-lines ] [ ] bi*
|
||||
maybe-tail*
|
||||
[ print ] each ;
|
Loading…
Reference in New Issue