buildtest.executors.local

This module implements the LocalExecutor class responsible for submitting jobs to localhost. This class is called in class BuildExecutor when initializing the executors.

Module Contents

Classes

LocalExecutor

The LocalExecutor class is responsible for running tests locally for

class buildtest.executors.local.LocalExecutor(name, settings, site_configs)

Bases: buildtest.executors.base.BaseExecutor

The LocalExecutor class is responsible for running tests locally for bash, sh and python shell. The LocalExecutor runs the tests and gathers the output and error results and writes to file. This class implements load, check and run method.

type = local
check(self)

Check if shell binary is available

load(self)

Load a particular configuration based on the name. This method should set defaults for the executor, and will vary based on the class.

run(self, builder)

This method is responsible for running test for LocalExecutor which runs test locally. We keep track of metadata in builder.metadata that keeps track of run result. The output and error file are written to filesystem.

Parameters

builder (BuilderBase, required) – builder object

write_testresults(self, builder)

Upon execution of tests we write stdout and stderr to output and error file.

Parameters

builder (BuilderBase, required) – builder object