1. 25 6月, 2019 2 次提交
    • C
      Test: report state on each phase · ac776472
      Cleber Rosa 提交于
      The test can be asked to report its state, or it can do it itself.
      Given that the test knows when it enters each phase, let's ask it to
      report it.
      
      Because the *state* is now reported, it's possible for a test to
      finish (for instance by killing itself) without setting a valid (user
      visible) status, such as "PASS", "FAIL", etc.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      ac776472
    • C
      Test: report test phases · 33b28b0f
      Cleber Rosa 提交于
      The avocado test runner mostly "flies blind" when it comes to the
      individual test phases, that is, it doesn't know if a test is
      currently being initialized, running its setup, running the test
      method itself or its teardown.
      
      With this, the runner gets access to that information, and can act
      differently based on this knowledge.  One use case is to allow for
      different timeouts on different test phases.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      33b28b0f
  2. 21 6月, 2019 1 次提交
  3. 20 6月, 2019 2 次提交
    • C
      Drop test that locally build docs · 4ecf0b3c
      Cleber Rosa 提交于
      In my experience, a very small percentage of the changes actually
      introduce Sphinx based documentation.  Say, a feature may be composed
      of 10 patches, and at the end of the series, the feature is
      documented.
      
      Requiring the documentation to be build all the time takes a toll on
      both local and remote systems CI systems.  Let's make the testing
      slimmer, and rely on readthedocs.org to tell if any issues are
      introduced.
      
      Instead, let's deal with eventual issues before a release is cut.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      4ecf0b3c
    • C
      selftests/checkall: respect Python version set/found · befa15de
      Cleber Rosa 提交于
      And use the avocado module entry point, instead of any specific
      script.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      befa15de
  4. 19 6月, 2019 2 次提交
  5. 18 6月, 2019 1 次提交
  6. 17 6月, 2019 4 次提交
  7. 15 6月, 2019 2 次提交
    • C
      restclient: drop unmaintained feature · edd0e1f5
      Cleber Rosa 提交于
      Avocado's restclient tool, and also the avocado-server related tool
      avocado-journal-replay, are features that have not received any
      maintenance for a long time.  The reason is because avocado-server
      itself hasn't been maintained.
      
      One of the post 69.0 goals was to make Avocado slimmer, and try to make
      its core features depend on nothing but Python, so let's drop this
      feature for now.  If avocado-server resurrects, it can always be
      brought back from version control.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      edd0e1f5
    • C
      XUnit schema check: replace lxml with xmlschema · 455ce8af
      Cleber Rosa 提交于
      The later is a pure Python library, designed for the specific purpose
      of validating schema, while the former requires a compiler tool chain
      to be installed in a number of scenarios.
      
      Let's also pin the version of its direct depency, elementpath.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      455ce8af
  8. 02 5月, 2019 1 次提交
    • C
      selftests/modules-boundaries.sh: use bash as interpreter · 6f8a4685
      Cleber Rosa 提交于
      This shell script can not actually be used with non-bash sheels.  This
      only manifests on some environments where /bin/sh is not bash, and the
      exact outcome is similar to:
      
         * Checking for avocado.core imports from examples/tests: selftests/modules-boundaries.sh: 9: selftests/modules-boundaries.sh: RESULT: not found
         0
         * Checking for non-relative avocado imports from avocado/core: selftests/modules-boundaries.sh: 20: selftests/modules-boundaries.sh: RESULT: not found
         0
         * Checking for avocado imports from avocado/utils: selftests/modules-boundaries.sh: 31: selftests/modules-boundaries.sh: RESULT: not found
         0
         PASS: no module boundary infringement(s) found
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      6f8a4685
  9. 30 4月, 2019 1 次提交
    • C
      Selftests: temporary file management improvements · 234da7fd
      Cleber Rosa 提交于
      Rules such as "check" on our Makefile make sure that no temporary
      directory created by Avocado is left behind, but, it's very hard to
      tell who created a rogue directory.
      
      This brings improvements to the naming of the temporary directory, so
      that it's trivial to tell which test created in the first place.
      
      Additionally, it improves the temporary directory creation, usually by
      making use of a tearDown() test phase, instead of other more fragile
      methods.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      234da7fd
  10. 27 4月, 2019 2 次提交
  11. 24 4月, 2019 5 次提交
  12. 23 4月, 2019 1 次提交
  13. 17 4月, 2019 6 次提交
  14. 02 4月, 2019 5 次提交
  15. 20 3月, 2019 3 次提交
  16. 08 3月, 2019 1 次提交
    • C
      Drop Python 2 · a90c24c6
      Cleber Rosa 提交于
      And the compatiblity helper six.  With Python 2 gone, a number of
      package changes are also introduced, so that the packages are always
      named python3-<suffix>.
      
      Also, because it would be confusing not having an "avocado" script,
      and to conform with the system wide change introduced by distros that
      now offer Python 3 by default, the scripts are no longer called
      avocado-3 (or avocado-3.x), but simply "avocado".
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      a90c24c6
  17. 07 3月, 2019 1 次提交