1. 29 1月, 2019 1 次提交
  2. 10 12月, 2018 1 次提交
  3. 07 12月, 2018 1 次提交
    • C
      Job: clean up "dry-run" jobs by default · 4e59ec91
      Cleber Rosa 提交于
      In an effort to make jobs more self contained, and given that dry-run
      jobs created temporary content that is not supposed to be kept after
      the job is run, this introduces the following changes:
      
       * Jobs with "dry-run" enabled will now, by default, cleanup their
         own data.  Basically, this means that the "base log directory"
         created during job initialization, and that for non "dry-run"
         jobs is usually "~/avocado/job-results", will also be removed
         at the job's "cleanup()" phase.
      
       * A new "--dry-run-no-cleanup" command line option, that only makes
         sense when jobs with dry-run enabled start to clean up data for
         themselves
      
       * Because some result plugins will, by default, write to the job
         results directory, results plugins are now run before a job cleanup
         is done.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      4e59ec91
  4. 06 12月, 2018 1 次提交
  5. 30 11月, 2018 4 次提交
  6. 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
  7. 14 11月, 2018 1 次提交
  8. 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
  9. 25 9月, 2018 1 次提交
  10. 24 9月, 2018 1 次提交
  11. 18 9月, 2018 1 次提交
  12. 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
  13. 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
  14. 01 9月, 2018 1 次提交
  15. 28 8月, 2018 2 次提交
  16. 27 8月, 2018 1 次提交
  17. 03 8月, 2018 4 次提交
  18. 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
  19. 19 7月, 2018 2 次提交
  20. 17 7月, 2018 1 次提交
  21. 04 7月, 2018 2 次提交
  22. 29 6月, 2018 1 次提交
  23. 26 6月, 2018 1 次提交
  24. 23 6月, 2018 1 次提交
  25. 19 6月, 2018 1 次提交
  26. 11 6月, 2018 1 次提交
  27. 09 6月, 2018 1 次提交
  28. 10 5月, 2018 1 次提交
  29. 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
  30. 03 5月, 2018 1 次提交