Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3d7b8e7

Browse files
committed
Improve recording
1 parent 7160557 commit 3d7b8e7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Start Screen Recording
5858
run: |
5959
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)
6161
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
6262
# pid=`cat ~/var/run/ffmpeg.pid`
6363
# echo "Waiting for ffmpeg (pid $pid) to start recording (display $DISPLAY)..."

src/test/suite/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ export function run(): Promise<void> {
2626
// Run the mocha test
2727
mocha.run(failures => {
2828
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+
}
3035
} else {
3136
c();
3237
}

0 commit comments

Comments
 (0)