1. 15 2月, 2018 2 次提交
  2. 13 2月, 2018 3 次提交
  3. 12 2月, 2018 4 次提交
  4. 10 2月, 2018 1 次提交
    • A
      SIMPLE tests: improve status API · c42bfbc9
      Amador Pahim 提交于
      Currently simple tests have a limited status API, being able to set only
      the WARN status by generating an output string in a very specific and
      hard-coded format.
      
      This patch, while respects the current behaviour, creates configuration
      keys, allowing users to provide regular expressions to search for in the
      test outputs, aiming to set the final test status to either WARN or SKIP
      when the test finishes with exit code 0.
      Signed-off-by: NAmador Pahim <apahim@redhat.com>
      c42bfbc9
  5. 08 2月, 2018 1 次提交
    • C
      Test statuses: do not rely on varianter_yaml_to_mux plugin · 6e14beb9
      Cleber Rosa 提交于
      Which is an optional plugin, and the test statuses feature is at the
      innermost core of Avocado.  While the original test indeed saved a lot
      of duplicated code, it's code that serves a specific testing purpose,
      and it's better to be simpler and more verbose and with the right (no)
      dependencies.
      
      This issue came up during the Python 3 port work.  Now that all the
      unittests (selftests/unit/*) were passing (locally, there's one other
      PR pending to be accepted), the next logical step is getting the
      "core" functional (selftests/functional/*) tests passing.  Because
      the 'varianter_yaml_to_mux' optional plugins port is not done, the
      "core" functional tests fail and the current work flow is broken.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      6e14beb9
  6. 04 2月, 2018 1 次提交
  7. 20 1月, 2018 1 次提交
  8. 19 1月, 2018 3 次提交
    • C
      selftests/unit/test_safeloader.py: do not rely on assertRegex* methods · 70d525f1
      Cleber Rosa 提交于
      The prevailing coding style of Avocado (unittest.TestCase) tests is to
      use the specialized assert methods, such as assertNotRegexpMatches.
      
      Unfortunately, the regular expression related assertion methods have
      been through a messy renaming.  In theory, assertNotRegexpMatches and
      assertRegexpMatches should be available in Python 3.0 and 3.1, but not
      in Python >= 3.2, where it got renamed to assertRegex and
      assertNotRegex.
      
      In practice, in my system with Python 3.6.3, I see:
      
      >>> unittest.TestCase.assertNotRegexpMatches
      <function TestCase._deprecate.<locals>.deprecated_func at 0x7f3b85b709d8>
      
      But in Travis, with Python 3.4, it's not available:
      
      ERROR: test_directives_regex (selftests.unit.test_safeloader.DocstringDirectives)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/home/travis/build/avocado-framework/avocado/selftests/unit/test_safeloader.py", line 135, in test_directives_regex
          self.assertNotRegexpMatches(directive, safeloader.DOCSTRING_DIRECTIVE_RE)
      AttributeError: 'DocstringDirectives' object has no attribute 'assertNotRegexpMatches'
      
      Let's simplify things and just use a regex match and check for its
      result.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      70d525f1
    • L
      selftests: Use "readlink" instead of "realpath" · 3f66bd69
      Lukáš Doktor 提交于
      The "realpath" is being deprecated in favor of "readlink -f", which
      should mainly work the same way. This is required by Travis as it's
      version of Ubuntu does not contain "realpath".
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      3f66bd69
    • L
      selftests.checkall: Allow 24 tests to fail_once in parallel check · b8f711c0
      Lukáš Doktor 提交于
      In Travis more tests are failing when running in parallel, but still 20
      failed tests in parallel re-ran in series are faster than all tests in
      series.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      b8f711c0
  9. 04 1月, 2018 3 次提交
  10. 24 12月, 2017 1 次提交
  11. 22 12月, 2017 3 次提交
  12. 21 12月, 2017 4 次提交
  13. 20 12月, 2017 1 次提交
  14. 16 12月, 2017 2 次提交
  15. 15 12月, 2017 1 次提交
    • C
      Tree: add unittests · b97d040f
      Cleber Rosa 提交于
      The `avocado.core.tree.TreeNode` is the foundation of the current
      Parameter System (`avocado.core.parameters.AvocadoParams`), but it
      lacks unittests that only deal with itself.
      
      Some tests that exercise the Multiplexer version of the `TreeNodes`
      (`MuxTreeNodes`) exist, but again, that's not what the core Parameter
      System is based on.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      b97d040f
  16. 14 12月, 2017 2 次提交
  17. 12 12月, 2017 1 次提交
    • C
      avocado.core.sysinfo: use avocado.utils.process · 224f7187
      Cleber Rosa 提交于
      The sysinfo code replicates some of the process handling code
      already in avocado.utils.process.  Let's use our library instead
      and remove code duplication.
      
      This also marks the sysinfo interruption tests as "time and resource
      sensitive", and will not run on environments such as Travis-CI, in
      a similar way that other interruption based tests are currently set.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      224f7187
  18. 06 12月, 2017 1 次提交
  19. 01 12月, 2017 4 次提交
  20. 30 11月, 2017 1 次提交
    • C
      Output check: add a test for API call check mode enforcement · 11f3b0df
      Cleber Rosa 提交于
      The avocado.utils.process APIs offer the `allow_output_check`
      parameter which exists at a function call level, and thus should be
      applied only during the scope of that function.
      
      While it's questionable if a test process should be able to skip
      some of its generated output (by means of an `avocado.utils.process`
      function parameter), the fact is that the utility libraries offer
      that at a lower level.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      11f3b0df