示例#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