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¶
|
The LocalExecutor class is responsible for running tests locally for |
-
class
buildtest.executors.local.
LocalExecutor
(name, settings, config_opts)¶ 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
andrun
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)¶ This method is responsible for running test for LocalExecutor which runs test locally. We keep track of metadata in
self.builder.metadata
andself.result
keeps track of run result. The output and error file are written to filesystem.
-