1. 15 2月, 2018 1 次提交
  2. 31 5月, 2017 1 次提交
    • L
      runner: Allow to specify execution order · 024c18fe
      Lukáš Doktor 提交于
      The suite order means the order in which the variants will be applied to
      tests. Right now we run all variants of first test, then the same for
      the second, third, ... tests. The new option "--execution-order" allows
      to alternatively specify "tests-per-variant" mode where we run first
      variant of all tests, then second variant, third, ...
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      024c18fe
  3. 24 5月, 2017 2 次提交
    • C
      avocado list command: also show tag statistics · e3e2cf33
      Cleber Rosa 提交于
      Just like `avocado list` presents the statistics for the test types,
      it may be useful to also list the number of tests that have a
      particular tag.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      e3e2cf33
    • C
      avocado list command: also list test tags · e9ad7b6d
      Cleber Rosa 提交于
      Test tags (via docstring directives) have been supported in Avocado
      for a number of releases, but up until now user would only be able to
      see the tags on their tests by resorting to the source code.
      
      This was already difficult when the tags where set only at the class
      level, now that they can be set both on the class and method
      docstring, users would have to do the "math" on their minds.
      
      Let's display the test tags when the verbose switch is given to the
      list command to make the life of users easier.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      e9ad7b6d
  4. 13 5月, 2017 2 次提交
    • C
      Human interface: do not show tests execution time · 2c5b18a3
      Cleber Rosa 提交于
      This is a UI tweak, as suggested during review, to remove the tests
      time.
      
      It's kept separately, because it can be easily dropped if any reason
      to keep it arises.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      2c5b18a3
    • C
      Human Interface: show job execution time · 9b307c7c
      Cleber Rosa 提交于
      A long standing task is to show the job execution time, instead of the
      sum of tests execution time.  After some major work, this is now
      possible.
      
      This change adds the job execution time to the human interface UI, in
      addition to the test execution time.  Some users may prefer the job
      execution time alone, while others may prefer all the time statistics
      on a single line.
      
      Since we cannot please everyone, this version just adds it.  I believe
      UI tweaks can follow.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      9b307c7c
  5. 24 4月, 2017 1 次提交
  6. 06 3月, 2017 1 次提交
  7. 07 9月, 2016 1 次提交
    • C
      HTML Result: move rendering code from core to the plugin itself · 0c619415
      Cleber Rosa 提交于
      This change removes the knowledge, and dependency, that the current
      Avocado core has of the HTML rendering code.
      
      The only user visible change is that the UI message about the
      generated HTML file now appears one line after it used to appear.  The
      reason is not because of the HTML plugin itself, but because the
      results are now generated outside the context of the job, and that is,
      chronologically a bit later than it used to be.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      0c619415
  8. 12 5月, 2016 1 次提交
    • C
      Tests time accounting: be more precise about what is being shown · 754c0a85
      Cleber Rosa 提交于
      Avocado has until now shown very simplified time information for jobs,
      and some could even say unprecise or just plain incorrect.
      
      The fact is that the time displayed in the UI (HumanResult) and also
      on the various other supported formats is the sum of the run time of
      individual tests.
      
      The problem with that is tha a job may include other actions that can
      take time, from little to substancial amounts.  This makes it clear
      that a job that say, took 30 seconds to run (although not displayed at
      this point), spent only 20 seconds actually running tests.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      754c0a85
  9. 17 3月, 2016 1 次提交
  10. 28 10月, 2015 1 次提交
    • C
      Plugins: remove external plugin support · 7b969527
      Cleber Rosa 提交于
      In preparation for the large plugin refactor, let's simplify the code ASAP
      and drop related (custom) functionality that is going to be replaced.
      
      Standard setuptools entrypoints is going to provide better capability then
      our custom code that supports external 'avocado_*.py'module loading.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      7b969527
  11. 07 10月, 2015 1 次提交
  12. 01 10月, 2015 1 次提交
  13. 13 8月, 2015 1 次提交
    • C
      Inner Runner implementation · f364a1ab
      Cleber Rosa 提交于
      In some external test suites, what is defined as a "test" can not be
      run by itself and need a specific runner script/tool.
      
      This introduces the concept of an "inner runner", that is, a custom
      test runner or tool that can deal with custom tests that do follow
      the Avocado SIMPLE test definition.
      
      This implements the Trello card:
      
       https://trello.com/c/TpXecE2n/486-introduce-inner-runner-to-avocado-run
      
      More information can be found in the man page section about it.
      
      Changes from v1:
       * removed "level" from "inner level runner" mentions
       * replicated docs from man page to "main" docs
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      f364a1ab
  14. 28 7月, 2015 1 次提交
    • L
      avocado: Shorter app output · c1728093
      Lucas Meneghel Rodrigues 提交于
      Instead of putting outputs on separate lines, condensate
      test results summary into a single line. The new output
      looks like:
      
      $ avocado run passtest
      JOB ID     : f2f5060440bd57cba646c1f223ec8c40d03f539b
      JOB LOG    : /home/user/avocado/job-results/job-2015-07-27T17.13-f2f5060/job.log
      JOB HTML   : /home/user/avocado/job-results/job-2015-07-27T17.13-f2f5060/html/results.html
      TESTS      : 1
      (1/1) passtest.py:PassTest.test: PASS (0.00 s)
      RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0
      TIME       : 0.00 s
      
      We updated a few unittests in order to not depend on the
      looks of the human output anymore, since unless we are
      specifically testing for human output behavior, the unittests
      should use machine readable output. Also, the documentation
      was updated to reflect the new output layout.
      Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
      c1728093
  15. 25 6月, 2015 2 次提交
  16. 16 6月, 2015 2 次提交
  17. 11 6月, 2015 1 次提交
    • R
      avocado.core.parser: Add option --config. · 4b91276e
      Rudá Moura 提交于
      Use command line --config to read a custom configuration from a file.
      Note this option is for the avocado application, so it has
      effect for all subcommands.
      
      Example:
      
      $ avocado --config /var/tmp/avocado.conf config
      Config files read (in order):
      /home/rmoura/Work/avocado/etc/avocado/avocado.conf
      /home/rmoura/Work/avocado/etc/avocado/conf.d/gdb.conf
      /var/tmp/avocado.conf
      ...
      
      Also, update man-page about the new option --config.
      Signed-off-by: NRudá Moura <rmoura@redhat.com>
      4b91276e
  18. 10 4月, 2015 1 次提交
  19. 28 3月, 2015 1 次提交
  20. 27 3月, 2015 1 次提交
  21. 20 3月, 2015 2 次提交
  22. 18 2月, 2015 1 次提交
  23. 03 2月, 2015 3 次提交
  24. 20 1月, 2015 2 次提交
  25. 17 1月, 2015 2 次提交
    • C
      Distro plugin: implement distro definition file creation · 8128fa82
      Cleber Rosa 提交于
      As a subcommand (option, really) of the plugin command. The generated
      distro file is supposed to be portable and be named canonically based
      on the name, version, release and arch.
      
      Changes from v0:
       * Return proper exit status when required command line arguments are
         missing
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      8128fa82
    • C
      Distro plugin: add a new distro plugin and basic command · 3e42c9d0
      Cleber Rosa 提交于
      At this stage, the distro plugin is very simplistic and prints the
      detected distribution of the current machine. One could algue that
      this is rather useless, but, with the component isolation work this
      command is going to be helpful for troubleshooting purposes.
      
      Also, this plugin is a placeholder where other functionality will
      live, including (but not limited to):
      
       * the ability to create "distro definition" files, akin to
         autotest's autotest-distro-def-create.
       * the ability to view "distro definition" files, akin to
         autotest's autotest-distro-def-view.
       * the ability to download "distro definition" files from a
         repository
       * (maybe) the ability to push a distro definition file to
         avocado-server. This may be delegated to a full blown REST
         client though.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      3e42c9d0
  26. 15 12月, 2014 1 次提交
  27. 11 12月, 2014 2 次提交
  28. 09 12月, 2014 1 次提交
  29. 27 11月, 2014 1 次提交
  30. 25 11月, 2014 1 次提交
    • C
      GDB: let user choose the gdbserver binary to use · 55b6acc3
      Cleber Rosa 提交于
      Developers using Avocado's GDB support may also need to use their custom
      build of gdbserver.
      
      This implements the same logic and options as the previous commit does
      for the GDB binary, including API level changes.
      
      Changes from v1:
         * use `avocado.utils.process.find_command` as the first default
           location for the gdbserver binary, falling back to the hard coded
           default of `/usr/bin/gdbserver` if that fails.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      55b6acc3