Skip to content

Commit 3e6ed46

Browse files
author
Clement Champetier
committed
pyTest: fix testAddAllStreamsOfAGivenFile on CI
* In the test, the stream needs to switch to a generator during the process, but it cannot, because the installed ffmpeg does not contain libx264. * For now we use an other file to test the Transcoder::add method.
1 parent 5fc3d1e commit 3e6ed46

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

test/pyTest/testTranscoderAdd.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import os
22

33
# Check if environment is setup to run the tests
4-
if os.environ.get('AVTRANSCODER_TEST_AUDIO_WAVE_FILE') is None or os.environ.get('AVTRANSCODER_TEST_VIDEO_MOV_FILE') is None:
4+
if os.environ.get('AVTRANSCODER_TEST_AUDIO_WAVE_FILE') is None or \
5+
os.environ.get('AVTRANSCODER_TEST_AUDIO_MOV_FILE') is None:
56
from nose.plugins.skip import SkipTest
6-
raise SkipTest("Need to define environment variables AVTRANSCODER_TEST_AUDIO_WAVE_FILE and AVTRANSCODER_TEST_VIDEO_MOV_FILE")
7+
raise SkipTest("Need to define environment variables "
8+
"AVTRANSCODER_TEST_AUDIO_WAVE_FILE and "
9+
"AVTRANSCODER_TEST_AUDIO_MOV_FILE")
710

811
from nose.tools import *
912

@@ -57,7 +60,7 @@ def testAddAllStreamsOfAGivenFile():
5760
Add all streams from a given file.
5861
"""
5962
# input
60-
inputFileName = os.environ['AVTRANSCODER_TEST_VIDEO_MOV_FILE']
63+
inputFileName = os.environ['AVTRANSCODER_TEST_AUDIO_MOV_FILE']
6164

6265
# output
6366
outputFileName = "testAddAllStreamsOfAGivenFile.mov"

0 commit comments

Comments
 (0)