mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-24 09:40:28 -06:00
Add logs to fixture generations
This commit is contained in:
parent
a3f1595f79
commit
9e3e4adc65
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -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/*
|
||||
|
@ -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
|
||||
|
||||
|
@ -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' ])
|
||||
|
Loading…
Reference in New Issue
Block a user