1. 22 12月, 2017 1 次提交
  2. 29 11月, 2017 1 次提交
    • C
      FDDrainer: flush the file based handlers before filling results · 41dfb4b9
      Cleber Rosa 提交于
      The FDDrainer reads from the PIPEs and writes to both the internal
      StringIO instances and to stream logging handlers.  There are no
      guarantees that the logging handlers will flush the content before the
      FDDrainer finishes.
      
      Let's explicitly close all the handlers (which should really be
      FileHandlers) associated with the stream loggers, which should flush
      and sync the content on the files themselves.
      
      Additionally, the combined drainer was being missed from the flush
      process, and was causing some output in that mode to be unavailable on
      generated output.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      41dfb4b9
  3. 18 11月, 2017 2 次提交
  4. 04 10月, 2017 2 次提交
  5. 08 3月, 2017 1 次提交
  6. 06 2月, 2017 1 次提交
  7. 07 11月, 2016 1 次提交
  8. 15 2月, 2016 1 次提交
  9. 12 2月, 2016 1 次提交
  10. 27 1月, 2016 1 次提交
    • L
      avocado.utils.process: Add 'sudo' parameter to run and system APIs · 7dad50e7
      Lucas Meneghel Rodrigues 提交于
      Some commands do require admin privileges to run, but we
      can't use the 'root' user in some testing scenarios [1].
      
      So let's add a 'sudo' parameter to process.run(), process.system()
      and process.system_output() interfaces, that will append
      a sudo command to the original command string, causing it
      to be executed under sudo. The basic assumption here is
      that the user executing the tests was added to the sudoers
      file in such a way that it can run administrative commands
      without a password.
      
      [1] One specific environment where we can't use the root
      user is when avocado runs on an AWS (Amazon Web Services)
      instance.
      Signed-off-by: NLucas Meneghel Rodrigues <lookkas@gmail.com>
      7dad50e7
  11. 28 11月, 2015 2 次提交
  12. 03 9月, 2015 1 次提交
    • C
      Selftests: move to adhere to unittest discover default pattern · 24d87eb4
      Cleber Rosa 提交于
      To be honest, our test code could still be kept in the same directories and
      have the same names. But I think we can improve two things here:
      
      1) Flatten a little bit the directory structure of selftests. Two path
      components are being dropped here: "all" and "avocado". So that
      "selftests/all/functional/avocado" becomes simply
      "selftests/functional".
      
      2) File names match what is, by default, recognized by unittest (the
      Standard Library module) based discovery of tests. That means that
      doc_build_test.py becomes test_doc_build.py. Not a big deal IMHO.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      24d87eb4
  13. 13 6月, 2015 1 次提交
  14. 18 3月, 2015 1 次提交
  15. 29 1月, 2015 1 次提交
  16. 10 9月, 2014 1 次提交