|
|
@ -33,7 +33,7 @@ class Scenario4(Scenario):
|
|
|
|
TEST_FILE_LABEL = 'rotsh'
|
|
|
|
TEST_FILE_LABEL = 'rotsh'
|
|
|
|
TEST_FILE_EXTENSION = 'mkv'
|
|
|
|
TEST_FILE_EXTENSION = 'mkv'
|
|
|
|
|
|
|
|
|
|
|
|
TEST_PATTERN = f"{TEST_FILE_LABEL}_{FileProperties.SEASON_EPISODE_INDICATOR_MATCH}.{TEST_FILE_EXTENSION}"
|
|
|
|
TEST_PATTERN = f"{TEST_FILE_LABEL}_{FileProperties.SE_INDICATOR_PATTERN}.{TEST_FILE_EXTENSION}"
|
|
|
|
|
|
|
|
|
|
|
|
EXPECTED_FILE_EXTENSION = 'webm'
|
|
|
|
EXPECTED_FILE_EXTENSION = 'webm'
|
|
|
|
|
|
|
|
|
|
|
@ -118,17 +118,22 @@ class Scenario4(Scenario):
|
|
|
|
jellyfinSelectorIndex = -1
|
|
|
|
jellyfinSelectorIndex = -1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if self._context['test_variant'] and variantIdentifier != self._context['test_variant']:
|
|
|
|
if self._context['test_variant'] and not variantIdentifier.startswith(self._context['test_variant']):
|
|
|
|
return
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ((self._context['test_passed_counter'] + self._context['test_failed_counter'])
|
|
|
|
|
|
|
|
>= self._context['test_limit']):
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self._logger.debug(f"Running Job: {variantLabel}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for l in presetMediaDescriptor.getConfiguration(label = 'presetMediaDescriptor'):
|
|
|
|
for l in presetMediaDescriptor.getConfiguration(label = 'presetMediaDescriptor'):
|
|
|
|
self._logger.debug(l)
|
|
|
|
self._logger.debug(l)
|
|
|
|
|
|
|
|
|
|
|
|
for l in sourceMediaDescriptor.getConfiguration(label = 'sourceMediaDescriptor'):
|
|
|
|
for l in sourceMediaDescriptor.getConfiguration(label = 'sourceMediaDescriptor'):
|
|
|
|
self._logger.debug(l)
|
|
|
|
self._logger.debug(l)
|
|
|
|
|
|
|
|
|
|
|
|
self._logger.debug(f"Running Job: {variantLabel}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Phase 1: Setup source files
|
|
|
|
# Phase 1: Setup source files
|
|
|
|
|
|
|
|
|
|
|
@ -164,8 +169,13 @@ class Scenario4(Scenario):
|
|
|
|
# Phase 3: Run ffx
|
|
|
|
# Phase 3: Run ffx
|
|
|
|
|
|
|
|
|
|
|
|
commandSequence = [sys.executable,
|
|
|
|
commandSequence = [sys.executable,
|
|
|
|
self._ffxExecutablePath,
|
|
|
|
self._ffxExecutablePath]
|
|
|
|
'--database-file',
|
|
|
|
|
|
|
|
|
|
|
|
if self._context['verbosity']:
|
|
|
|
|
|
|
|
commandSequence += ['--verbose',
|
|
|
|
|
|
|
|
str(self._context['verbosity'])]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commandSequence += ['--database-file',
|
|
|
|
self._testDbFilePath,
|
|
|
|
self._testDbFilePath,
|
|
|
|
'convert']
|
|
|
|
'convert']
|
|
|
|
commandSequence += [tfo['filename'] for tfo in testFileList]
|
|
|
|
commandSequence += [tfo['filename'] for tfo in testFileList]
|
|
|
@ -179,8 +189,8 @@ class Scenario4(Scenario):
|
|
|
|
|
|
|
|
|
|
|
|
out, err, rc = executeProcess(commandSequence, directory = self._testDirectory)
|
|
|
|
out, err, rc = executeProcess(commandSequence, directory = self._testDirectory)
|
|
|
|
|
|
|
|
|
|
|
|
# if out:
|
|
|
|
if out and self._context['verbosity'] >= 9:
|
|
|
|
# self._logger.debug(f"{variantLabel}: Process output: {out}")
|
|
|
|
self._logger.debug(f"{variantLabel}: Process output: {out}")
|
|
|
|
if rc:
|
|
|
|
if rc:
|
|
|
|
self._logger.debug(f"{variantLabel}: Process returned ERROR {rc} ({err})")
|
|
|
|
self._logger.debug(f"{variantLabel}: Process returned ERROR {rc} ({err})")
|
|
|
|
|
|
|
|
|
|
|
@ -258,14 +268,13 @@ class Scenario4(Scenario):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self._context['test_passed_counter'] += 1
|
|
|
|
self._context['test_passed_counter'] += 1
|
|
|
|
self._reportLogger.info(f"{variantLabel}: Test passed")
|
|
|
|
self._reportLogger.info(f"\n{variantLabel}: Test passed\n")
|
|
|
|
|
|
|
|
|
|
|
|
except AssertionError as ae:
|
|
|
|
except AssertionError as ae:
|
|
|
|
|
|
|
|
|
|
|
|
self._context['test_failed_counter'] += 1
|
|
|
|
self._context['test_failed_counter'] += 1
|
|
|
|
self._reportLogger.error(f"{variantLabel}: Test FAILED ({ae})")
|
|
|
|
self._reportLogger.error(f"\n{variantLabel}: Test FAILED ({ae})\n")
|
|
|
|
|
|
|
|
|
|
|
|
# exit()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def run(self):
|
|
|
|
def run(self):
|
|
|
|
|
|
|
|
|
|
|
|