1. 18 2月, 2016 2 次提交
    • C
      20a94802
    • H
      Use environment marker for conditional requirements · 03c04b98
      Hao Liu 提交于
      Managing different requirements files for different python version
      requires much more efforts when the requirements became too complex.
      
      This issue emerged when a required package `stevedore` decide not
      supporting Python 2.6 since version `1.11.0`.
      
      ```
      >>> import stevedore
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/usr/lib/python2.6/site-packages/stevedore/__init__.py", line 23, in <module>
          LOG.addHandler(logging.NullHandler())
      AttributeError: 'module' object has no attribute 'NullHandler
      ```
      
      Pip provides a feature named [Environment
      Markers](https://www.python.org/dev/peps/pep-0496/) for requirements
      file to include specific packages conditionally which could properly
      solve this issue.
      
      This fix:
      1. Use environment markers and merge python version specific
      requirements files;
      2. Remove python version specific requirements files references in
      `Makefile` and Travis configuration;
      3. Use `pip install -r requirements.txt` to replace per-line package
      installation;
      4. Restrain package `stevedore` on Python 2.6 to `1.10.0`.
      Signed-off-by: NHao Liu <hliu@redhat.com>
      03c04b98
  2. 17 2月, 2016 3 次提交
  3. 16 2月, 2016 10 次提交
  4. 15 2月, 2016 2 次提交
  5. 14 2月, 2016 1 次提交
  6. 12 2月, 2016 12 次提交
  7. 11 2月, 2016 2 次提交
  8. 10 2月, 2016 3 次提交
  9. 09 2月, 2016 1 次提交
  10. 06 2月, 2016 1 次提交
  11. 05 2月, 2016 3 次提交
    • C
      avocado/core/settings.py: simple optimization · 76774c6f
      Cleber Rosa 提交于
      Reuse the value of "_config_path_intree" to set "_config_path_intree_extra".
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      76774c6f
    • L
      Merge pull request #1006 from clebergnu/test_result_small_improvements · 30d18d20
      Lukáš Doktor 提交于
      Test result small improvements
      30d18d20
    • C
      Test Result: define a formal method to register test result classes · 6ee69b27
      Cleber Rosa 提交于
      Avocado defines avocado.core.result.TestResult, so that alternative
      test result classes can inherit from it. When a user writes a new
      test result class, he's left wondering how to activate that.
      
      First, for consistency, Avocado should define proper interfaces
      for "test result plugins". This is on sight, and will ultimately
      allow users to register new test result implementations simply by
      registering the setuptools entry points, just as it's currently
      done (on versions >= 0.31.0) for command line related plugins.
      
      Until then, let's at least improve the current state of things.
      These changes believe that the following improvements are given here:
      
      * avocado.core.job.Job._set_output_plugins now won't look at every
        possible key in the application arguments, and won't silence
        possible errors while trying to instantiate test result classes.
      * test result writers can now use a documented method for registering
        their test result classes.
      
      The same approach was not chosen to be done with the test runner
      classes because there can only by one test runner per Avocado job.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      6ee69b27