File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 57
57
- name : Start Screen Recording
58
58
run : |
59
59
mkdir -p $PWD/videos
60
- no_close=--no-close # uncomment to see ffmpeg output (i.e. leave stdio open)
60
+ no_close=# --no-close # uncomment to see ffmpeg output (i.e. leave stdio open)
61
61
start-stop-daemon $no_close --start --quiet --pidfile ~/var/run/ffmpeg.pid --make-pidfile --background --exec /usr/bin/ffmpeg -- -nostdin -f x11grab -video_size 1280x1024 -framerate 10 -i ${DISPLAY}.0+0,0 $PWD/videos/test.mp4
62
62
# pid=`cat ~/var/run/ffmpeg.pid`
63
63
# echo "Waiting for ffmpeg (pid $pid) to start recording (display $DISPLAY)..."
Original file line number Diff line number Diff line change @@ -26,7 +26,12 @@ export function run(): Promise<void> {
26
26
// Run the mocha test
27
27
mocha . run ( failures => {
28
28
if ( failures > 0 ) {
29
- e ( new Error ( `${ failures } tests failed.` ) ) ;
29
+ // Let the cameras roll for a bit & make sure we capture the error
30
+ if ( process . env . CI ) {
31
+ setTimeout ( ( ) => e ( new Error ( `${ failures } tests failed; pausing for dramatic effect.` ) ) , 5000 ) ;
32
+ } else {
33
+ e ( new Error ( `${ failures } tests failed.` )
34
+ }
30
35
} else {
31
36
c ( ) ;
32
37
}
You can’t perform that action at this time.
0 commit comments