1. 18 9月, 2018 1 次提交
  2. 07 9月, 2018 4 次提交
  3. 04 9月, 2018 1 次提交
    • C
      Enables pylint w0621 · 628e35c3
      Caio Carrara 提交于
      This pylint checks for possible redefining outer names. Some occurrences
      was preserved with disable flag because they would broke some public
      api, like method/functions names or parameters.
      Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
      628e35c3
  4. 01 9月, 2018 1 次提交
  5. 30 8月, 2018 1 次提交
  6. 25 8月, 2018 1 次提交
  7. 24 8月, 2018 2 次提交
  8. 23 8月, 2018 1 次提交
  9. 22 8月, 2018 1 次提交
  10. 17 8月, 2018 1 次提交
  11. 16 8月, 2018 1 次提交
  12. 14 8月, 2018 1 次提交
  13. 20 6月, 2018 1 次提交
    • C
      selftests/checkall: check load failures · 580f6101
      Cleber Rosa 提交于
      During the parallel execution of unittests, only conditions for FAIL
      and ERROR are checked.  Under Python > 3.4, that's fine because load
      failures are treated as FAILures:
      
         $ python3.6
         Python 3.6.5 (default, Mar 29 2018, 18:20:46)
         [GCC 8.0.1 20180317 (Red Hat 8.0.1-0.19)] on linux
         Type "help", "copyright", "credits" or "license" for more information.
         >>> import unittest.loader
         >>> l = unittest.loader.TestLoader()
         >>> l.loadTestsFromName('selftests.unit.test_utils_cpu.Cpu.test_cpu_arch_ppc64_power8')
         <unittest.suite.TestSuite tests=[<unittest.loader._FailedTest testMethod=test_utils_cpu>]>
      
      But, under Python 3.4, no such treatment is done:
      
         $ python3.4
         Python 3.4.3 (default, Jan 13 2018, 13:06:46)
         [GCC 7.2.1 20170915 (Red Hat 7.2.1-2)] on linux
         Type "help", "copyright", "credits" or "license" for more information.
         >>> import unittest.loader
         >>> l = unittest.loader.TestLoader()
         >>> l.loadTestsFromName('selftests.unit.test_utils_cpu.Cpu.test_cpu_arch_ppc64_power8')
         Traceback (most recent call last):
           File "<stdin>", line 1, in <module>
           File "/home/cleber/.local/lib/python3.4/unittest/loader.py", line 114, in loadTestsFromName
             parent, obj = obj, getattr(obj, part)
         AttributeError: 'module' object has no attribute 'test_utils_cpu'
      
      This implements a simple check for load failures, which is not
      perfect, but better than none.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      580f6101
  14. 04 5月, 2018 1 次提交
  15. 19 4月, 2018 1 次提交
  16. 24 3月, 2018 3 次提交
  17. 22 3月, 2018 1 次提交
  18. 23 2月, 2018 1 次提交
    • C
      Python 3: do not allow failures on CI, but only run unittests and doc · 494405ae
      Cleber Rosa 提交于
      This removes the exception of allowing failures on the Travis CI jobs
      with Python 3, while, at the same time, temporary restricts Python 3
      jobs to run only unittests and the documentation build for the Avocado
      core.  That is, it excludes the functional tests, and the optional
      plugin's tests.
      
      While it may look like a step back, it's actually a step forward in the
      Python 3 port, because now any regression on the unittests will be caught.
      And, when the additional fixes are applied to address the functional tests
      and plugin's tests, the whole set of tests will be enabled for Python 3.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      494405ae
  19. 19 1月, 2018 2 次提交
  20. 21 12月, 2017 1 次提交
    • C
      selftests/checkall: enable parallel run for plugin tests · cd400219
      Cleber Rosa 提交于
      This change enables plugins tests to also be run in parallel, if
      they exist.
      
      Because the "selftests/{unit,functional,doc}" directories are valid
      Python modules, that is, they contain `__init__.py` files and can
      be imported by the unittest runner, no special handling is necessary.
      
      But, since the complete path for directories which (can) hold plugins
      tests are not valid Python modules (and shouldn't be), some special
      handling of directories is necessary.
      
      Because of that, it's not currently possible to run *all* of the
      tests (from "core" selftests and from plugins) at the same time.
      A future enhacement would be to better schedule processes that
      can be loaded from the same path at the same time, but all of
      them at once with global "test slices".
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      cd400219
  21. 16 12月, 2017 1 次提交
  22. 01 12月, 2017 1 次提交
  23. 15 11月, 2017 2 次提交
  24. 15 9月, 2017 1 次提交
  25. 16 8月, 2017 1 次提交
  26. 24 5月, 2017 1 次提交
  27. 10 3月, 2017 1 次提交
    • A
      selftests: selfcheck with results in a tempdir · a6eee6f1
      Amador Pahim 提交于
      To make sure the seltests does not leave job results behind,
      we introduced a check which compares the job-results directory
      content from before the selftets with the content after the
      selftests. But using `AVOCADO_SELF_CHECK=1 make check`, we
      expect at least one extra result in the job-results directory,
      making the content of the job-results to not be the same after
      the tests.
      
      This patch changes the avocado command used for self check
      in `make check`, pointing the results to a temporary directory.
      
      Reference: https://trello.com/c/y57xZSUSSigned-off-by: NAmador Pahim <apahim@redhat.com>
      a6eee6f1
  28. 16 2月, 2017 1 次提交
    • A
      selftests: suppress missing directory message · d2fedfc7
      Amador Pahim 提交于
      checkall runs `ls` twice in the job-results dir. Once before the
      selftests and once again after the tests, comparing the outputs to make
      sure there's no new results there after the selftests.
      
      When the job-results does not exist in advance (the case in travis
      environments), the message 'ls: cannot access /home/travis/avocado/job-results:
      No such file or directory' is shown in the logs. The message is harmless
      and does not affect the check. Let's just suppress the stderr from the
      `ls` command in that check.
      
      Reference: https://trello.com/c/IBoLAJjfSigned-off-by: NAmador Pahim <apahim@redhat.com>
      d2fedfc7
  29. 03 2月, 2017 2 次提交
  30. 02 2月, 2017 1 次提交
    • A
      selftests: exclude E722 from pep8 check · 4973475e
      Amador Pahim 提交于
      pep8 v2.3.0 introduced the check for bare except clause (E722). Until
      now, we don't explicitly disable the pep8 check we don't want because
      inspect has a default exclude list (E501, E265, W601 and E402).
      
      Let's make explicit the exclude list for the checks we don't want in our
      selftests, adding to the list the new E722 check.
      Signed-off-by: NAmador Pahim <apahim@redhat.com>
      4973475e
  31. 10 1月, 2017 1 次提交
    • L
      selftests.checkall: Add signed-off-by check · 3897ce39
      Lukáš Doktor 提交于
      The signed-off-by check makes sure the latest commit contains correct
      "Signed-off-by" message. As this check is executed per each commit in
      travis, it should make sure all new commits contain this message which
      is quite important as it states that the author agrees with the terms
      from our contribution guide.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      3897ce39