예제 #1
0
def run(context, all_, id_, environment, **kwargs):
    """ Run test steps. """
    # Initialize
    run = tmt.Run(id_, context.obj.tree, context=context)
    context.obj.run = run

    # Check for sane environment variables
    for env in environment:
        if '=' not in env:
            raise tmt.utils.GeneralError(
                f"Invalid environment variable specification '{env}'.")
예제 #2
0
def run(context, all_, id_):
    """ Run test steps. """
    # Initialize
    global run
    run = tmt.Run(id_, tree)
    # All test steps are enabled if no step selected
    enabled = context.invoked_subcommand is None or all_
    tmt.steps.Discover.enabled = enabled
    tmt.steps.Provision.enabled = enabled
    tmt.steps.Prepare.enabled = enabled
    tmt.steps.Execute.enabled = enabled
    tmt.steps.Report.enabled = enabled
    tmt.steps.Finish.enabled = enabled
예제 #3
0
파일: cli.py 프로젝트: happz/tmt
def run(context, id_, **kwargs):
    """ Run test steps. """
    # Initialize
    run = tmt.Run(id_, context.obj.tree, context=context)
    context.obj.run = run
예제 #4
0
def run(context, all_, id_, **kwargs):
    """ Run test steps. """
    # Initialize
    run = tmt.Run(id_, context.obj.tree)
    run._context = context
    context.obj.run = run
예제 #5
0
파일: cli.py 프로젝트: TomasTomecek/tmt
def run(context, all_, id_, **kwargs):
    """ Run test steps. """
    # Initialize
    tmt.Run._save_context(context)
    run = tmt.Run(id_, context.obj.tree)
    context.obj.run = run