1. 30 11月, 2018 4 次提交
  2. 27 11月, 2018 1 次提交
    • C
      Selftests: respect pylint 2.2.0 checks · e28a2461
      Cleber Rosa 提交于
      The newly released pylint version 2.2.0, changed its default behavior
      (enabled) the following checks:
      
       * :unnecessary-pass (W0107): *Unnecessary pass statement*
         Used when a "pass" statement that can be avoided is encountered.
      
       * :unused-import (W0611): *Unused %s*
         Used when an imported module or variable is not used.
      
      Let's apply fixes to those checks, and at the same time, pin the
      pylint versions so that our CI environment is more stable (code that
      test our code -- pylint -- doesn't change, while our code changes).
      
      For Python 2, the latest release was 1.9.3, so let's use that.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      e28a2461
  3. 14 11月, 2018 1 次提交
  4. 02 10月, 2018 2 次提交
    • C
      Add core test parameter passing support (non-varianter based) · 252f8be2
      Cleber Rosa 提交于
      Currently, the only way to pass parameters to Avocado is by using the
      variants layer, that is, one of the existing varianter plugin
      implementations.  This was based on earlier design decisions, that
      we're trying to fix without breaking expectation and compatibility.
      
      While it'd makes sense to support parameters created by the varianter
      layer itself, together with non-varianter parameters, it seems that we
      can start by adding support for one or the other being used at a time.
      
      This commit does exactly that: add support for a method of passing
      parameters via the command line for all tests in a job, without
      having to resort to the varianter.  When the varianter is used,
      it takes precedence and the core test parameter passing support
      is ignored.
      
      This should solve a number of use cases that require one-time
      executions of tests with different parameters, especially
      executions during test development and debugging.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      252f8be2
    • C
      avocado.utils.lvutils: fix bytes/text problems · d9a13f1d
      Cleber Rosa 提交于
      The lv_utils functional tests, which usually don't run because
      they require privileged execution, revealed a number of broken
      expectations when it comes to bytes and text handling.
      
      Let's fix both the module and the test.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      d9a13f1d
  5. 25 9月, 2018 1 次提交
  6. 24 9月, 2018 1 次提交
  7. 18 9月, 2018 1 次提交
  8. 15 9月, 2018 1 次提交
    • C
      External Runner: support relative paths given on the command line · 89704618
      Cleber Rosa 提交于
      I was trying to use the external runner, in a reasonably simple way:
      from within a project (QEMU) build dir, I'd run:
      
       $ avocado run --external-runner=tests/qemu-iotests/check \
         --external-runner-chdir=runner -- 001 002
      
      But, what should work, did not.  The problem is with the non-absolute
      path to the external runner, that is needed because we're changing
      directories.
      
      Absolute paths won't hurt otherwise (when no chdir is done), so it's
      always done here.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      89704618
  9. 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
  10. 01 9月, 2018 1 次提交
  11. 28 8月, 2018 2 次提交
  12. 27 8月, 2018 1 次提交
  13. 03 8月, 2018 4 次提交
  14. 21 7月, 2018 1 次提交
    • C
      selftests/functional/test_basic.py: prevent unversioned Python · 9b2db940
      Cleber Rosa 提交于
      `examples/tests/simplewarning.sh` calls a generic avocado command,
      which gets added to the path by the test code. That generic avocado
      command is `scripts/avocado`, from the source repository, which
      contains the unversioned `/usr/bin/env python`.
      
      Under some environments, such as Fedora >= 29, there may be no
      unversioned Python binary.  Let's respect the UNITTEST_AVOCADO_CMD
      environment variable, and add the the directory containting that
      binary to the PATH.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      9b2db940
  15. 19 7月, 2018 2 次提交
  16. 17 7月, 2018 1 次提交
  17. 04 7月, 2018 2 次提交
  18. 29 6月, 2018 1 次提交
  19. 26 6月, 2018 1 次提交
  20. 23 6月, 2018 1 次提交
  21. 19 6月, 2018 1 次提交
  22. 11 6月, 2018 1 次提交
  23. 09 6月, 2018 1 次提交
  24. 10 5月, 2018 1 次提交
  25. 04 5月, 2018 1 次提交
    • C
      Replay with remote functional test: skip if remote plugin is not available · 0cc70f1c
      Cleber Rosa 提交于
      When a plugin is not installed, its command line options are not
      registered with the optparse based code.  That is caught earlier than
      Avocado's own handling of incompatible options (in this case, the replay
      and the remote runner), and results in the errors such as:
      
        avocado run: error: unrecognized arguments: --remote-hostname
      
      When building RPM packages for Python 3, the remote runner plugin is
      not available, and this test should be skipped.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      0cc70f1c
  26. 03 5月, 2018 1 次提交
  27. 01 5月, 2018 1 次提交
  28. 25 4月, 2018 1 次提交
  29. 23 4月, 2018 2 次提交