click-textual
Maveno 11 months ago
parent ad58ba5ce6
commit 772c1d8f90

@ -178,12 +178,14 @@ def createMediaFile(directory: str = '',
commandTokens += [outputPath] commandTokens += [outputPath]
print(f"command sequence: {commandTokens}") print(f"command sequence: {commandTokens}")
out, err, rc = executeProcess(commandTokens) out, err, rc = executeProcess(commandTokens)
if rc: if rc:
print(f"Creating testfile failed with {rc}: {err}") print(f"Creating testfile failed with {rc}: {err}")
return outputPath
def createEmptyDirectory(): def createEmptyDirectory():
return tempfile.mkdtemp() return tempfile.mkdtemp()

@ -1,8 +1,9 @@
import click import os, sys, click
from .scenario import Scenario from .scenario import Scenario
from ffx.test.helper import createMediaFile from ffx.test.helper import createMediaFile
from ffx.process import executeProcess
class Scenario1(Scenario): class Scenario1(Scenario):
"""Creating file VAa, h264/aac/aac """Creating file VAa, h264/aac/aac
@ -19,5 +20,12 @@ class Scenario1(Scenario):
click.echo(f"Running scenario 1") click.echo(f"Running scenario 1")
createMediaFile(directory=self._testDirectory) mediaFilePath = createMediaFile(directory=self._testDirectory)
commandSequence = [sys.executable, os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(__file__))), 'ffx.py'), '--help']
click.echo(f"Scenarion 1 test sequence: {commandSequence}")
out, err, rc = executeProcess(commandSequence)
click.echo(out)

Loading…
Cancel
Save