1. 01 2月, 2018 1 次提交
    • C
      Python 3: provide a predictive FilterSet.__repr__() implementation · f594df04
      Cleber Rosa 提交于
      There's a difference on how Python 2 and 3 represents a set(), which is true
      for the set derived FilterSet.  It just happens the a tree fingerprint
      depends on its environment, which depends on the FilterSet representation.
      
      Let's provide a predictive __repr__ implementation, and consequently, a
      predictive fingerprint for Trees across Python versions.
      
      This fixes the following unittest failure on Python 3:
      
         FAIL: test_fingerprint (selftests.unit.test_tree.TreeNode)
         ----------------------------------------------------------------------
         Traceback (most recent call last):
           File "/home/cleber/src/avocado/avocado/selftests/unit/test_tree.py", line 63, in test_fingerprint
             "/foo{},{},FilterSet([]),FilterSet([])")
         AssertionError: '/foo{},{},FilterSet(),FilterSet()' != '/foo{},{},FilterSet([]),FilterSet([])'
         - /foo{},{},FilterSet(),FilterSet()
         + /foo{},{},FilterSet([]),FilterSet([])
         ?                     ++            ++
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      f594df04
  2. 25 1月, 2018 3 次提交
  3. 24 1月, 2018 4 次提交
  4. 23 1月, 2018 9 次提交
  5. 22 1月, 2018 4 次提交
  6. 20 1月, 2018 2 次提交
  7. 19 1月, 2018 7 次提交
  8. 18 1月, 2018 1 次提交
  9. 17 1月, 2018 1 次提交
    • W
      utils.cpu: Update cpu info pattern for aarch64 · f1030aed
      Wayne Sun 提交于
      arm64 or aarch64 pattern is not easy to identify in the
      cpuinfo. For v7 there is model name in the cpuinfo and it
      could be regonize as arm for 32 bit. But in v8 only could
      found 'CPU architecture' in the cpuinfo and current code
      will fail to match and return i386 which is wrong.
      
      For fix this, if 'CPU architecture' found in cpuinfo, use
      platform.machine to return the arch name.
      Signed-off-by: NWayne Sun <gsun@redhat.com>
      f1030aed
  10. 16 1月, 2018 8 次提交