1. 04 7月, 2018 3 次提交
  2. 03 7月, 2018 2 次提交
  3. 28 6月, 2018 1 次提交
  4. 27 6月, 2018 1 次提交
    • C
      Test Loader: use enums from from Python 3.4 · 5e4c4d16
      Cleber Rosa 提交于
      This change reveleaed a couple of location in the symbolic names where
      not being used, but their special values were being evaluated.  Let's
      avoid using the special (and subtle) meaning of ALL (True) and
      DEFAULT/AVAILABLE (which evaluate to False).
      
      The enum library is part of the standard library, starting from 3.4
      (which is the mininum version we require for Avocado).  On Python 2.7,
      we can rely on the backport package.
      
      This is of course not necessary right now, but I feel that we can
      continue modernizing the code base, and not wait for 2020 and then be
      liberated to use newer constructs and libraries.
      
      Reference: https://trello.com/c/k90E1kdg/1357-loader-remove-compatibility-aliasesSigned-off-by: NCleber Rosa <crosa@redhat.com>
      5e4c4d16
  5. 26 6月, 2018 3 次提交
  6. 23 6月, 2018 2 次提交
  7. 21 6月, 2018 2 次提交
  8. 20 6月, 2018 4 次提交
    • C
      Merge remote-tracking branch 'ldoktor/cpuu' · c38dc42f
      Cleber Rosa 提交于
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      c38dc42f
    • L
      utils.cpu: Avoid multiple-transformation of disable value · b103498b
      Lukáš Doktor 提交于
      The legacy disable value is currently transformed in a loop using the
      same variable, which results in TypeError as the transformed output is
      not a valid input. Let's fix it by only single transformation in case
      `setstate` is not used.
      
      With `setstate` the value can be safely overridden as the value comes
      from `setstate`.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      b103498b
    • 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
    • L
      Merging pull request 2675 · 9cab2f15
      Lukáš Doktor 提交于
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      
      * https://github.com/avocado-framework/avocado:
        Removing the deprecated AVOCADO_TEST_DATADIR
      9cab2f15
  9. 19 6月, 2018 1 次提交
  10. 13 6月, 2018 1 次提交
  11. 12 6月, 2018 17 次提交
  12. 11 6月, 2018 3 次提交