1. 27 9月, 2016 1 次提交
  2. 09 9月, 2016 1 次提交
  3. 06 6月, 2016 1 次提交
  4. 12 5月, 2016 1 次提交
  5. 05 5月, 2016 1 次提交
  6. 04 5月, 2016 1 次提交
  7. 29 2月, 2016 1 次提交
    • C
      Test: remove get_data_path utility API · 58dea874
      Cleber Rosa 提交于
      The get_data_path utility API of the Test class is a convenience,
      it simply joins the name of a given file to the datadir location.
      
      IMHO the value is low when compared to the pollution of the namespace
      and yet another compatibility/stability promise.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      58dea874
  8. 19 1月, 2016 1 次提交
  9. 07 1月, 2016 3 次提交
  10. 06 1月, 2016 2 次提交
  11. 07 12月, 2015 1 次提交
    • C
      virtualenv: allow tests to run properly on them · 63aa6df6
      Cleber Rosa 提交于
      While going through the dependency list (requirements*.txt files) and
      performing our self tests out of virtual environments, I noticed that
      some tests are run outside the virtual environments.
      
      The reason is that, even though the virtual environment is activated
      for the test session (and say, `which python` gives `/venv/bin/python`),
      we have hard coded `/usr/bin/python` in most places.
      
      According to the some discussions on the virtualenv project itself[1],
      a quick solution is to revert to the also common `/usr/bin/env python`
      way of pointing to the Python interpreter.
      
      [1] - https://github.com/pypa/virtualenv/issues/124Signed-off-by: NCleber Rosa <crosa@redhat.com>
      63aa6df6
  12. 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
  13. 30 9月, 2015 1 次提交
  14. 18 9月, 2015 1 次提交
  15. 15 9月, 2015 1 次提交
    • L
      avocado.core.test: Avoid passing ugly exceptions · 73c8cefb
      Lukáš Doktor 提交于
      Currently when one passes exception, which is not instance of Exception,
      avocado proceeds and returns "INTERRUPTED" test instead of "ERROR". This
      for example happens when old-style-class is used as exception. This
      patch uses pure "except" without any argument to catch such exceptions
      and then it wraps them in "exceptions.TestError" instead.
      
      The same applies to "setUp" and "tearDown", they only use different
      class as a wrapper.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      73c8cefb
  16. 14 8月, 2015 1 次提交
  17. 10 8月, 2015 4 次提交
  18. 04 8月, 2015 1 次提交
  19. 08 7月, 2015 1 次提交
  20. 07 7月, 2015 3 次提交
    • L
      avocado: Add fail_on_error decorator · 06d1d8c3
      Lucas Meneghel Rodrigues 提交于
      Give to test writers the fail_on_error decorator, which
      should turn any generic exception into an avocado
      TestFail.
      
      This is important for some tests that can raise
      any exception during a complex operation, and any of those
      exceptions can be considered a test failure.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      06d1d8c3
    • L
      avocado.core.test: Test() -> Enforce that skip() can only be called from setUp() · f7017640
      Lucas Meneghel Rodrigues 提交于
      Make sure avocado complains loudly when people try to call
      skip() from outside setUp() - this shouldn't be allowed in
      avocado tests. Let the user know of the problem and ask them
      to fix their tests. Also, update the docstring for skip(),
      which will reduce the chances of test writers using it in
      inappropriate places.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      f7017640
    • L
      avocado: Remove configurable behavior of uncaught exceptions · e363ed40
      Lucas Meneghel Rodrigues 提交于
      In order to keep things simple and clear, enforce the
      following test results rules:
      
       * `PASS`: the test passed, which means all conditions
         being tested have passed.
       * `FAIL`: the test failed, which means at least one
         condition being tested has failed. Ideally, it should
         mean a problem in the software being tested has been found.
       * `ERROR`: an error happened during the test execution.
         This can happen, for example, if there's a bug in the test
         runner, in its libraries or if a resource breaks unexpectedly.
         Uncaught exceptions in the test code will also result in this
         status.
       * `SKIP`: the test runner decided a requested test should not
         be executed. This can happen, for example, due to missing
         requirements in the test environment or when there's a job
         timeout.
      
      In order to do that, let's not make the behavior on exceptions
      other than TestFail to be configurable. Therefore, the config
      value uncaught_exception_result must be removed and the status
      of the test always be 'ERROR'.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      e363ed40
  21. 19 6月, 2015 1 次提交
  22. 18 6月, 2015 3 次提交
  23. 12 6月, 2015 3 次提交
  24. 09 6月, 2015 3 次提交
  25. 05 6月, 2015 1 次提交
    • C
      trinity example test: fix fetch of tarball parameter and update to 1.5 · ff4e6741
      Cleber Rosa 提交于
      Because of the parameter behaviour change this test was failing to get
      the name of the tarball to use during the test.
      
      Once that was fixed, there was a couple of build errors. Instead of
      debugging the build of the 1.4 version, I tried version 1.5, which
      built without any problems. Let's use this oppotunity to fix the
      test (wrapper) and update the (original test) tarball.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      ff4e6741
  26. 16 5月, 2015 1 次提交