Exemplo n.º 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}'.")
Exemplo n.º 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
Exemplo n.º 3
0
Arquivo: cli.py Projeto: happz/tmt
def run(context, id_, **kwargs):
    """ Run test steps. """
    # Initialize
    run = tmt.Run(id_, context.obj.tree, context=context)
    context.obj.run = run
Exemplo n.º 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
Exemplo n.º 5
0
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