Add logs to fixture generations

This commit is contained in:
Chocobozzz 2020-12-01 09:31:45 +01:00
parent a3f1595f79
commit 9e3e4adc65
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 6 additions and 3 deletions

View File

@ -98,11 +98,11 @@ jobs:
- name: Display directories state
if: failure()
run: |
ls -l
ls -l test*
- name: Upload logs
uses: actions/upload-artifact@v2
if: failure()
with:
name: test-storages-${{ matrix.test_suite }}
path: test*/logs
path: test*/logs/*

View File

@ -434,7 +434,7 @@ describe('Test video transcoding', function () {
})
it('Should downscale to the closest divisor standard framerate', async function () {
this.timeout(160000)
this.timeout(200000)
let tempFixturePath: string

View File

@ -88,6 +88,7 @@ async function generateHighBitrateVideo () {
const exists = await pathExists(tempFixturePath)
if (!exists) {
console.log('Generating high bitrate video.')
// Generate a random, high bitrate video on the fly, so we don't have to include
// a large file in the repo. The video needs to have a certain minimum length so
@ -115,6 +116,8 @@ async function generateVideoWithFramerate (fps = 60) {
const exists = await pathExists(tempFixturePath)
if (!exists) {
console.log('Generating video with framerate %d.', fps)
return new Promise<string>((res, rej) => {
ffmpeg()
.outputOptions([ '-f rawvideo', '-video_size 1280x720', '-i /dev/urandom' ])