Add logs to fixture generations
This commit is contained in:
parent
a3f1595f79
commit
9e3e4adc65
|
@ -98,11 +98,11 @@ jobs:
|
||||||
- name: Display directories state
|
- name: Display directories state
|
||||||
if: failure()
|
if: failure()
|
||||||
run: |
|
run: |
|
||||||
ls -l
|
ls -l test*
|
||||||
|
|
||||||
- name: Upload logs
|
- name: Upload logs
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: test-storages-${{ matrix.test_suite }}
|
name: test-storages-${{ matrix.test_suite }}
|
||||||
path: test*/logs
|
path: test*/logs/*
|
||||||
|
|
|
@ -434,7 +434,7 @@ describe('Test video transcoding', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('Should downscale to the closest divisor standard framerate', async function () {
|
it('Should downscale to the closest divisor standard framerate', async function () {
|
||||||
this.timeout(160000)
|
this.timeout(200000)
|
||||||
|
|
||||||
let tempFixturePath: string
|
let tempFixturePath: string
|
||||||
|
|
||||||
|
|
|
@ -88,6 +88,7 @@ async function generateHighBitrateVideo () {
|
||||||
|
|
||||||
const exists = await pathExists(tempFixturePath)
|
const exists = await pathExists(tempFixturePath)
|
||||||
if (!exists) {
|
if (!exists) {
|
||||||
|
console.log('Generating high bitrate video.')
|
||||||
|
|
||||||
// Generate a random, high bitrate video on the fly, so we don't have to include
|
// 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
|
// 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)
|
const exists = await pathExists(tempFixturePath)
|
||||||
if (!exists) {
|
if (!exists) {
|
||||||
|
console.log('Generating video with framerate %d.', fps)
|
||||||
|
|
||||||
return new Promise<string>((res, rej) => {
|
return new Promise<string>((res, rej) => {
|
||||||
ffmpeg()
|
ffmpeg()
|
||||||
.outputOptions([ '-f rawvideo', '-video_size 1280x720', '-i /dev/urandom' ])
|
.outputOptions([ '-f rawvideo', '-video_size 1280x720', '-i /dev/urandom' ])
|
||||||
|
|
Loading…
Reference in New Issue