1. 18 9月, 2018 1 次提交
  2. 15 5月, 2017 1 次提交
    • L
      avocado: Use output.LOG_{UI,JOB} in Avocado · f2ca8094
      Lukáš Doktor 提交于
      Currently we hardcode the "avocado.app" and "avocado.test" loggers
      everywhere in Avocado, let's use the newly defined
      `avocado.core.output.LOG_{UI,JOB}` variables everywhere in Avocado
      except of `avocado.utils`, which shouldn't have used this interface in
      the first place and will be subject of change in the future.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      f2ca8094
  3. 06 9月, 2016 1 次提交
  4. 26 4月, 2016 1 次提交
    • C
      Plugins: Introduce Pre and Post Job Execution Plugins · 6ea85516
      Cleber Rosa 提交于
      These new plugin interfaces, to be registered under the
      'avocado.plugins.job.prepost' namespace, allow for any custom action
      to be executed before and/or after the job execution.
      
      The JobPre plugin interface requires the `pre` method to be
      implemented, while the JobPost plugin interface requires the `post`
      method to be implemented.  The separation of the interfaces allows for
      mandatory implementation of the given interfaces, which was the whole
      point of using Abstract base classes, instead of having empty default
      implementations.
      
      One single class may implement either one, or both of those
      interfaces.  Both `pre` and `post` methods receive the current Job
      instance as an argument, which allows the plugin to fetch any job
      information or even to tweak as it may seem fit.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      6ea85516