1. 30 8月, 2018 1 次提交
  2. 29 8月, 2018 1 次提交
    • C
      avocado.utils.vmimage: differentiate against base and concrete classes · e98d3c1b
      Cleber Rosa 提交于
      First of all, a disclaimer: this is hackish.  But, it's the simplest
      and thus best fix I could think of.
      
      What happens here is that this module makes no distintcion between
      what is a base class "abstract" class, and a concrete class.  With the
      goal of reducing code duplication, a goal that will remain valid here
      and in other modules, it made sense to create a common Fedora class.
      
      Now, because only being a ImageProviderBase suffices, the
      FedoraImageProviderBase class, which is not intended to be used as a
      concrete (final) class, is being carried along and its "name" is
      checked, causing crashes.
      
      This introduces the ad-hoc, hackish, notion, that a concrete
      ImageProvider is one that contains a name.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      e98d3c1b
  3. 28 8月, 2018 2 次提交
  4. 27 8月, 2018 1 次提交
  5. 25 8月, 2018 1 次提交
  6. 24 8月, 2018 3 次提交
  7. 23 8月, 2018 3 次提交
    • C
      avocado.utils: introduce cloudinit module · 891cd495
      Cleber Rosa 提交于
      This addition to the utilities library facilitates the use of the
      cloudinit features inside Linux OSs images for the cloud.
      
      For now, it eases the creation of "cidata" ISOs, containing
      configuration to cloud-init, and also a simple "phone home"
      server.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      891cd495
    • C
      Creates env var to define parallel lint execution · 8514fba0
      Caio Carrara 提交于
      This change introduce AVOCADO_PARALLEL_LINT variable to
      selftest/checkall script to make possible set the parallel lint
      execution per environment.
      
      Since currently the Travis CI is failing due lint parallel execution,
      this change already sets AVOCADO_PARALLEL_LINT to 1 in Travis CI.
      
      Reference: https://trello.com/c/LQ0szonHSigned-off-by: NCaio Carrara <ccarrara@redhat.com>
      8514fba0
    • C
      avocado/utils/partition.py: do not blow up on systems with no lsof · c576028d
      Cleber Rosa 提交于
      lsof is not an Avocado dependency, and is much harder to find on base
      systems than mount, kill, etc.  Since this module pretty much revolves
      around those utilities this does not propose major changes, trying to
      adapt to the lack of mount, kill, etc.
      
      This change makes it clear, through a PartitionError, when it's not
      possible to run a forceful unmount due to the lack (or error) of lsof.
      While at it, it refactors the methods that returns the list of PIDs
      using lsof.
      
      To be completely honest, there is still a broken expectation here: one
      cannot assume that by sending a signal the process will be killed.
      But, at least it is signalled by another PartitionError exception.
      
      https://trello.com/c/DDUNPCBxSigned-off-by: NCleber Rosa <crosa@redhat.com>
      c576028d
  8. 22 8月, 2018 3 次提交
  9. 21 8月, 2018 4 次提交
  10. 17 8月, 2018 1 次提交
  11. 16 8月, 2018 1 次提交
  12. 14 8月, 2018 2 次提交
  13. 13 8月, 2018 1 次提交
    • C
      Fix E1111 pylint error · 9ab6f2ed
      Caio Carrara 提交于
      E1111 error happens when a function which doesn't return is used to
      assign to something. In this particular case the unittest.TextTestResut
      stopTest method doesn't return and its result is being assigned to a
      variable. This behaviour makes pylint fails with E1111 error. This
      commit just don't assign the result of super() call and also keeps the
      super class method behavior (not returing).
      Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
      9ab6f2ed
  14. 12 8月, 2018 1 次提交
    • C
      Fix W0622 pylint error in python 3.7 · 4eb3042c
      Caio Carrara 提交于
      Python 3.7 introduced a new way to add breakpoint on the code. It was
      added the built-in breackpoint function. There was couple of places
      where the word breakpoint was being redefined making pylint execution
      fail with W0622 error (Redefining built-in). This commit replaces
      'breakpoint' with 'break_point' in these places.
      Signed-off-by: NCaio Carrara <ccarrara@redhat.com>
      4eb3042c
  15. 09 8月, 2018 1 次提交
    • C
      Initial set of deployment "tests" · 8c14e24a
      Cleber Rosa 提交于
      While abusing the term tests, this is an initial set of files that are
      intended to test how Avocado can be deployed on various platforms,
      using different installation methods.
      
      At this point, a single combination of installation method (pip) and
      destination (virtual environment).
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      8c14e24a
  16. 04 8月, 2018 1 次提交
    • L
      core.parameters: Consider same-path origin as the same origin · 7d4b8e08
      Lukáš Doktor 提交于
      Currently we compare the full TreeNodeEnvironment object to make sure
      they come from the same origin, which only works for connected tree. But
      Avocado supports (and uses in json-load) passing leaves of unconnected
      trees, but then the TreeNodeEnvironments are not matching.
      
      Let's rely only on "TreeNodeEnvironment.path" and declare these matching
      environments, no matter what values are stored (see selftest for
      details)
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      7d4b8e08
  17. 03 8月, 2018 4 次提交
  18. 01 8月, 2018 1 次提交
    • C
      ISO9660: add a pycdlib backend · e45e647f
      Cleber Rosa 提交于
      This implements another backend for the avocado.utils.iso9660 library,
      based on the pure Python pycdlib.
      
      The library, as it's the case with all other ISO9660 utilities, is
      optional and should only attempted to be be used if they are available
      in the system.
      
      In theory, we're well equipped with backends, but this brings the
      interesting possibility of running on non-UNIX platforms.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      e45e647f
  19. 27 7月, 2018 1 次提交
  20. 25 7月, 2018 3 次提交
  21. 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
  22. 19 7月, 2018 3 次提交