1. 29 1月, 2016 3 次提交
    • C
      27ca5105
    • L
      Merge pull request #991 from clebergnu/avoid_fork_bomb_v4 · d863c0da
      Lucas Meneghel Rodrigues 提交于
      avocado.main(): avoid an infinite fork loop bomb [v4]
      d863c0da
    • C
      avocado.main(): avoid an infinite fork loop bomb · 08103fb4
      Cleber Rosa 提交于
      Because the current implementation of avocado.main() creates a job
      and runs "sys.argv[0]" to implement standalone mode, it ends up
      running itself over and over.
      
      This simple proposed fix, prevents avocado.main() from running
      itself again if called from itself. Since they are on different
      processes, the mechanism chosen to do this is to set an environment
      variable, that will be seen by the next process.
      
      Also, by exiting from main() with an error code, the test first
      level test will fail. This will let the user know that the chosen
      approach (SIMPLE tests written in Python and calling main()) are
      not worthy of a PASS.
      
      The functional tests make use of Python's standard library utilities
      (subprocess module) directly for running Avocado because of current
      issues with Avocado's own process utility module.
      
      This adresses issue #961.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      08103fb4
  2. 28 1月, 2016 6 次提交
  3. 27 1月, 2016 7 次提交
  4. 26 1月, 2016 4 次提交
  5. 25 1月, 2016 3 次提交
  6. 21 1月, 2016 2 次提交
  7. 20 1月, 2016 12 次提交
  8. 19 1月, 2016 3 次提交