1. 22 12月, 2017 1 次提交
  2. 24 8月, 2017 2 次提交
    • C
      Removal of "import magic" for avocado and avocado-rest-client · d39f9a0a
      Cleber Rosa 提交于
      These scripts rely on some Python library path manipulation to be
      able to load from the source tree.  But, in fact that are a few
      reasons for not having those, including:
      
       * All functionality in `avocado` relies on plugins, which will not be
         available from the source tree unless a `$ setup.py develop` is
         executed, which automatically makes the "import magic" unnecessary.
      
       * Most users will end up using a setuptools generated "entry point"
         instead.
      
      For the sake of less code, I propose this (and all other?) magic to be
      removed.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      d39f9a0a
    • C
      scripts/avocado: remove duplicate conditional '__main__' section · 8eb65529
      Cleber Rosa 提交于
      Simple syntatic fix removing one of the (duplicate) conditional
      `__name__ == '__main__'` section.
      
      To preserve the functionality of the exception hook
      (`handle_exception`) the import of Avocado libraries are moved closed
      to their usage (inside the condition `__main__` block).
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      8eb65529
  3. 07 11月, 2016 1 次提交
  4. 04 10月, 2016 1 次提交
  5. 13 8月, 2016 1 次提交
  6. 24 2月, 2016 2 次提交
  7. 10 12月, 2015 1 次提交
  8. 04 11月, 2015 1 次提交
  9. 03 11月, 2015 1 次提交
  10. 08 10月, 2015 1 次提交
    • L
      avocado: Mass import cleanups · f4e82a6e
      Lucas Meneghel Rodrigues 提交于
      This is an automated mass import cleanup across all
      avocado source files:
      
      1) Imports follow the order:
       * Standard library imports
       * Non standard library external imports
       * Internal imports
       All separated by a single line
      2) One line between imports and the rest of the code
      3) Remove unused imports in the process
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      f4e82a6e
  11. 07 7月, 2015 1 次提交
  12. 12 5月, 2015 1 次提交
  13. 22 4月, 2015 1 次提交
  14. 21 4月, 2015 1 次提交
  15. 31 3月, 2015 1 次提交
  16. 25 3月, 2015 1 次提交
    • L
      scripts.avocado-bash-utils: Add Avocado bash utils · fa0e77a7
      Lukáš Doktor 提交于
      This patch is initial support for people using custom bash scripts
      with avocado. Tests should use:
      
          PATH=$(avocado "exec-path"):$PATH
      
      and then they can utilize the helpers.
      
      This version contain functions to write to Test.log the same way it's
      possible from python including failing the test with TestWarn in case
      avocado_warn was used.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      fa0e77a7
  17. 27 2月, 2015 1 次提交
  18. 25 2月, 2015 1 次提交
    • C
      avocado-run-testplan: introduce a minimalist tool to help with manual test plans · 326453e1
      Cleber Rosa 提交于
      Some test routines can not yet be easily automated in Avocado, and for those, we
      rather test things manually then not at all.
      
      The idea behind this tool is to use a predefined test plan (a simple JSON file)
      that has test names and descriptions with how to perform the test and what to
      expect. The tool will ask for the results for each test (either PASS, FAIL or
      SKIP) and possibly additional notes. These results will then be saved to a JSON
      file or to a human readable report.
      
      The human readable report can, for instance, be part of a release commit message,
      or if preferred, the JSON result file can be committed to keep track of what is
      working and what is known to be broken at a given time.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      326453e1
  19. 31 1月, 2015 1 次提交
  20. 03 9月, 2014 1 次提交
  21. 01 5月, 2014 1 次提交
  22. 10 4月, 2014 1 次提交
  23. 25 3月, 2014 1 次提交
    • R
      Add support for loading external plugins. · 98122ea9
      Rudá Moura 提交于
      Also, app.run() now returns an exit code -- requires further
      udpates to pass the exit code back from plugins.
      
      To load external plugins:
      
      p = MyPlugin()
      app = avocado.cli.app.AvocadoApp(external_plugins=[p])
      app.run()
      
      and here's a MyPlugin example:
      
      import sys
      import avocado
      from avocado.plugins import plugin
      
      class MyPlugin(plugin.Plugin):
          def configure(self, parser):
              myparser = parser.add_parser('hello',
                                           help='Hello World!')
              myparser.set_defaults(func=self.hello)
      	self.enabled = True
      
          def hello(self, args):
              print 'Hello World!', args
      
      And how to execute:
      
      python myplugin.py hello
      Hello World! Namespace(func=<bound method MyPlugin.hello of <__main__.MyPlugin object at 0x1574f90>>, log_level='', logdir='', verbose=False)
      Signed-off-by: NRuda Moura <rmoura@redhat.com>
      98122ea9
  24. 14 3月, 2014 1 次提交
  25. 08 3月, 2014 1 次提交
  26. 07 3月, 2014 1 次提交
  27. 06 3月, 2014 2 次提交