1. 06 12月, 2018 1 次提交
    • C
      Partitions/LV selftests: use sudo · 4c6f8ad0
      Cleber Rosa 提交于
      On a number of situations, sudo is being missed as a parameter for
      command executions that need to run privileged.  Examples include when
      writing to mountpoint, using a Python interpreter, and when trying to
      listing open files during a forceful unmount of the disk.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      4c6f8ad0
  2. 01 12月, 2018 2 次提交
  3. 30 11月, 2018 6 次提交
  4. 28 11月, 2018 3 次提交
    • L
      plugins.xunit: Use job-dir-name as name · 819bc132
      Lukáš Doktor 提交于
      Currently we use "avocado" as a suite name, let's use job-dir which is
      quite useful when matching xml results to output directories.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      819bc132
    • C
      Job: internal variable rename · bd281c62
      Cleber Rosa 提交于
      The related command line option is "--keep-tmp", and it keeps the
      setting on "keep_tmp", so it just makes sense, for easier reading of
      the code, to name the variable in a similar way.
      
      While at it, let's prevent crash if "os.path.exists()" in "cleanup()"
      is given a tmpdir that is None.  This was not caught before because
      the default value of "__remove_tmp" would prevent "os.path.exists()"
      to be reached.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      bd281c62
    • C
      avocado.utils.archive: add gzip uncompression support · a8cc0a63
      Cleber Rosa 提交于
      A gzip file doesn't have all the "archive" properties that a tarfile
      or zipfile has, but still, it could be useful to wrap in the archive
      module.
      
      At this point, support is being added to allow for files compressed
      with gzip, to be acknowledged as valid in avocado.utils.is_archive()
      and transparently handled with avocado.util.uncompress().
      
      The goal of this implementation is to allow for gzip files, which
      are compressed tarbals, to be properly handled at uncompress() time.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      a8cc0a63
  5. 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
  6. 22 11月, 2018 1 次提交
  7. 20 11月, 2018 1 次提交
  8. 17 11月, 2018 1 次提交
  9. 14 11月, 2018 1 次提交
  10. 06 11月, 2018 1 次提交
    • C
      Add tests for kernel download url building · 54ccf507
      Caio Carrara 提交于
      The current utils kernel module has no tests. Recently it was added a
      fix[1] to the process of kernel url building. To keep this process
      without future regressions, this change adds a proper test for it.
      
      It's important to note that a new internal method was added to the
      KernelBuild class to make easier to test it. Indirectly it's an
      improvement of download method that now is shorter and more explicit.
      
      [1] - commit c84ac6baSigned-off-by: NCaio Carrara <ccarrara@redhat.com>
      54ccf507
  11. 31 10月, 2018 1 次提交
  12. 04 10月, 2018 1 次提交
    • C
      Adds OpenSUSE vmimage provider · 37e7a3ea
      Caio Carrara 提交于
      This change adds a functional version of OpenSUSE vmimage provider.
      Because of some specific aspects of OpenSUSE versioning this provider
      version works properly with most recent known versions (42.3, 42.2. 42.1
      and 15.0) and should work properly with future versions as well (15+).
      
      This provider version also don't work with Tumbleweed (rolling release)
      versions, only with Leap versions. Because for tests it's better to
      change one thing at time, the rolling release is not a version supported
      right now.
      
      Reference: https://trello.com/c/i2TSbT3MSigned-off-by: NCaio Carrara <ccarrara@redhat.com>
      37e7a3ea
  13. 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
  14. 30 9月, 2018 1 次提交
  15. 28 9月, 2018 1 次提交
    • C
      vmimage: more tests for parser and base and minor improvements · 7f911a33
      Caio Carrara 提交于
      This change focus mostly on increasing tests for VmImageHtmlParser and
      ImageProviderBase. During the tests implementation some improvements
      were detected: the process of feed a html parser run both for get an
      image version and image url was duplicated so it was unified in a single
      method.
      
      Besides that the process of get a best version for an image was put on a
      specific method so each provider can override it if required. Today the
      default rule for a best version is based on calling max() function on
      found versions. However we can't assume it's the default for every
      provider. As far as we know, for a possible OpenSuse provider in future
      this rule will not be valid.
      
      Reference: https://trello.com/c/vtM1SPpJSigned-off-by: NCaio Carrara <ccarrara@redhat.com>
      7f911a33
  16. 26 9月, 2018 1 次提交
  17. 25 9月, 2018 5 次提交
  18. 24 9月, 2018 1 次提交
  19. 19 9月, 2018 2 次提交
  20. 18 9月, 2018 7 次提交