1. 01 2月, 2019 4 次提交
    • L
      utils.process: Use actual duration instead of timeout value · e51cfe0a
      Lukáš Doktor 提交于
      The interrupted message might be slightly misleading as there are
      several timeouts before declaring the process interrupted and the wait
      might not be issued immediatelly so let's use the (time - start_time)
      value instead of timeout value.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      e51cfe0a
    • L
      utils.process: Improve self-destruction on timeout · bede34f8
      Lukáš Doktor 提交于
      When we execute process with a timeout, we allow to specify signal to be
      used after the timeout is reached defaulting to SIGTERM. This signal is
      not always enough to really finish the process, on the other hand using
      SIGKILL all the time might do even more damage.
      
      Instead this version attempts to use the user-specified signal and only
      if that fails it sends SIGKILL to it. The same behavior is now shared on
      negative-timeout behavior.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      bede34f8
    • L
      utils.process: Avoid hangs · 012a1de4
      Lukáš Doktor 提交于
      This code is only accessible when timeout is specified so we do want to
      finish as soon as possible. Let's replace the "wait" with "poll" which
      might lead to declaring process Zombie even when it's not, but it's
      already passed 2 timeouts so I think it's better to finish and report
      something than to insist on waiting.
      
      This improves a real bug where Avocado hanged after process execution
      with timeout. This version is not the full fix, it only declares such
      process as zombie and avoids the complete hang.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      012a1de4
    • L
      utils.process: Support timeout for "wait" · 7cae8d18
      Lukáš Doktor 提交于
      Our process library only allows to specify timeout for process execution
      when used as the whole package using "run" method, but it might be
      useful to allow the same kind of treatement for "wait". Let's move the
      code there.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      7cae8d18
  2. 31 1月, 2019 5 次提交
  3. 30 1月, 2019 6 次提交
  4. 29 1月, 2019 4 次提交
  5. 25 1月, 2019 2 次提交
  6. 24 1月, 2019 8 次提交
  7. 23 1月, 2019 4 次提交
  8. 22 1月, 2019 1 次提交
  9. 15 1月, 2019 3 次提交
    • C
      Asset fetcher: handle URL + hash use case · 831d54fb
      Cleber Rosa 提交于
      As a documented feature of the asset fetcher, a user may want to make
      sure, by the use of a hash, that the fetched asset is sound.  Also, by
      giving a name of the asset, allow it to be fetched from a different
      number of locations.
      
      But, there's a difference in intention when a name+hash is used, and
      when a specific location and hash (a URL+hash) is used.  In the later
      case, we don't want to cache the file by name, because different URLs
      can have completely different contents.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      831d54fb
    • C
      Asset fetcher: cache relative dir should be computed from name · 2dd080a1
      Cleber Rosa 提交于
      The name the user gives to the asset fetcher should be the primary
      controlling aspect of the cache location.  The possible locations
      where the asset might be found are just an aiding component to the
      asset retrieval.
      
      This is, besides a fix, also an opmization, given that
      _get_relative_dir() is now called only once, instead of once for each
      possible location.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      2dd080a1
    • C
      Asset fetcher: docstring improvement · 2677c555
      Cleber Rosa 提交于
      The definition of the locations parameter feels broken.  Let's improve it.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      2677c555
  10. 12 1月, 2019 3 次提交