1. 21 10月, 2016 1 次提交
  2. 19 10月, 2016 5 次提交
  3. 14 10月, 2016 3 次提交
    • L
      avocado.utils.build: Replace individual params with kwparams · 07cb6b49
      Lukáš Doktor 提交于
      The utils.build prepares the env to run make inside avocado process. The
      avocado.process supports various extra arguments, but to build they are
      just an unrelated options. Let's avoid duplicating of process's
      arguments in build and simply allow custom process_kwargs (key word
      arguments) instead.
      
      In order to keep compatibility with 36lts the original hardcoded
      arguments were kept and they override the process_kwargs values, but we
      should remove them as soon as the 36lts is discontinued. This will
      require some changes to tests where the individual args are used.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      07cb6b49
    • L
      avocado.utils.process: Add support to ignore_bg_processes · 2b208c79
      Lukáš Doktor 提交于
      Some processes fork daemons and not finish them. This works fine as far
      as the daemons close the stdout/stderr, but there are daemons which keep
      the stdout/stderr opened preventing the `process.run` to finish.
      
      The correct response is to wait till the stdout/stderr is closed,
      because otherwise we miss the produced messages of the forked processes.
      On the other hand there are processes where we don't want the output and
      we do want the process to finish even though the daemons spawned by the
      process still run. In such cases one can use the `ignore_bg_processes`
      which ignores the opened stdout/stderr and finishes as soon as the main
      process finished.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      2b208c79
    • C
      Merge remote-tracking branch 'areis/master' · 193f589b
      Cleber Rosa 提交于
      193f589b
  4. 13 10月, 2016 8 次提交
    • L
      Merging pull request 1540 · bb08b697
      Lukáš Doktor 提交于
      * https://github.com/avocado-framework/avocado:
        Result: remove old reference to output
        Result: change the name of the attribute to better identify the proxy
        Result: do not keep track of all of the application processed arguments
        Job: prepare for the removal of old style result plugins
      bb08b697
    • C
      Result: remove old reference to output · 5376554c
      Cleber Rosa 提交于
      The `output` attribute was, at some point, meant to hold the information
      about where the result data should be sent to.  Then, the processed
      arguments started to be used.
      
      In the end, it has no purpose, so let's remove it.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      5376554c
    • C
      Result: change the name of the attribute to better identify the proxy · 295b8f61
      Cleber Rosa 提交于
      This is simple name change.  The goal is to make it clear that the
      current "result" attribute is a ResultProxy (old style result plugin)
      instance.  The idea is that a new attribute called "result" will really
      be a Result instance.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      295b8f61
    • C
      Result: do not keep track of all of the application processed arguments · aa9ca899
      Cleber Rosa 提交于
      It's been a common pattern in Avocado to expose the complete set of
      processed arguments to a lot of core components.  This makes the
      dependencies and interfaces between these components much less clear.
      
      As we clean up the Result class to make it just a result data container,
      let's remove the reference to the processed arguments and keep track
      of only the information that's relevant to a given Result implementation.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      aa9ca899
    • C
      Job: prepare for the removal of old style result plugins · c3586a1d
      Cleber Rosa 提交于
      This change combines the activation of all old style result plugins
      into a single method.  It also names it accordingly, so it's easier
      to spot it when it's finally removed.
      
      Another reason for this change is that the old docstring was outdated
      and inaccurate.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      c3586a1d
    • A
      Merge pull request #1534 from harish-24/data_struct_author · bcf12e59
      Ademar de Souza Reis Jr 提交于
      avocado.utils.data_structures: add author
      bcf12e59
    • A
      core.runner: optimize the waiting for early test status · 2d041bcf
      Ademar de Souza Reis Jr 提交于
      The loop that waits for the early test status has a call to sleep(0), which
      turns it into an almost busy-loop. Changing it to sleep(0.01) consumes less CPU
      without performance degradation (might actually make things run faster according
      to my tests).
      
      This change also makes it more consistent with the similar loop
      for the actual test status.
      
      On my machine, before this change running "passtest.py" 100 times would result
      in almost 250000 calls to time.sleep(). After the change, the number gets down
      to 600 (tracked via python cProfile module).
      Signed-off-by: NAdemar de Souza Reis Jr <areis@redhat.com>
      2d041bcf
    • A
      core.runner: decrease delay between status checks · 2d08dda2
      Ademar de Souza Reis Jr 提交于
      We have a loop to check for the test status which works
      like this:
      
       status = check_status()
       while not timeout or status:
           status = check_status()
           sleep(step)
           ...
      
      And step was defined as 0.1 (sec). At least on my machine, this was making
      avocado quite slow, as it was introducing a 0.1 sec sleep between each test
      execution.
      
      This commit changes step to 0.01 secs, making Avocado respond much faster.
      Notice there's no significant performance penalty with this change. sleep(0.01)
      is a long time for modern CPUs and schedulers.
      
      Benchmark is quite straighforward:
      
      TESTS=$(for i in $(seq 1 100); do echo passtest.py; done)
      
      BEFORE:
          $ time ./scripts/avocado run $TESTS --silent
          real    0m14.007s
          user    0m3.376s
          sys     0m3.112s
      
      AFTER:
          $ time ./scripts/avocado run $TESTS --silent
          real    0m4.741s
          user    0m2.994s
          sys     0m2.953s
      Signed-off-by: NAdemar de Souza Reis Jr <areis@redhat.com>
      2d08dda2
  5. 12 10月, 2016 1 次提交
  6. 11 10月, 2016 2 次提交
  7. 10 10月, 2016 7 次提交
  8. 09 10月, 2016 3 次提交
  9. 07 10月, 2016 10 次提交