1. 05 10月, 2016 5 次提交
    • L
      fb1700e8
    • L
      avocado.core.parser: Introduce "mux_debug" option · 3423ca96
      Lukáš Doktor 提交于
      The mux need to support debugging the options. This is a basic
      implementation which allows requesting mux to use TreeNodeDebug. Then
      it's the plugin's job to check whether mux uses debug (`mux.debug`) and
      act accordingly.
      
      In this basic implementation the debug is only enabled for `--multiplex`
      and `@None` is used for other injects (like `--mux-inject`)
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      3423ca96
    • L
      avocado.plugins.multiplex: Make --multiplex optional · c773cbce
      Lukáš Doktor 提交于
      The `--multiplex` is about to be changed into a separate plugin. It does
      not sound fair to keep it as default positional argument of the
      `multiplex` command. Let's sync the naming scheme and require
      `--multiplex` for it.
      
      This also means the `-m` is optional so one can run `avocado multiplex`
      without arguments to get default multiplex values.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      c773cbce
    • L
      avocado: Replace "multiplex_files" with "multiplex" · 9d6bb585
      Lukáš Doktor 提交于
      The option changed from --multiplex-files to `--multiplex` long time ago
      but we kept using the original `multiplex_files` destination for it.
      This is not systematic and can lead to problems in the future. Let's
      change it once for all.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      9d6bb585
    • L
      avocado.core.multiplexer: Define multiplexer API · 905a45ef
      Lukáš Doktor 提交于
      This patch is a 1st step to independent multiplex plugin. It unifies the
      multiplexation, which is handled exclusively by the
      avocado.core.multiplexer.Mux object, which is initialized directly in
      argument parser as `args.mux`, instead of the
      `parser.default_avocado_params`.
      
      The idea is to provide unified database with simple interface:
      
       * data_inject - inject key/value[/path] data
       * data_merge - merge node/tree into the data
      
      Additionally it supports internal API to generate the params:
      
       * is_parsed - whether it was already initialized/filtered/...
       * get_number_of_tests - reports number of test*variants
       * itertests - iterate through tests
      
      All those changes are pickle-safe from the old object to the new object
      (not vice versa), therefor it's possible to use old Mux objects stored
      in `jobdata` to replay tests.
      
      This API is not 100% stable yet, but we plan to keep the one sided
      pickle compatibility into the future (no guarantee, but we'll do our
      best).
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      905a45ef
  2. 04 10月, 2016 6 次提交
  3. 03 10月, 2016 1 次提交
  4. 30 9月, 2016 7 次提交
  5. 29 9月, 2016 3 次提交
    • L
      selftests.checkall: Enable fail-fast per-test · f30ebdec
      Lukáš Doktor 提交于
      Currently the fail-fast works per section (pylint style, unittests, ...)
      but this patch enables it also inside the unittests, therefor it
      finishes with the first failed unittest finishing even quicker than
      before.
      Note that this option is incompatible with the parallel check.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      f30ebdec
    • L
      selftests.checkall: Support for parallel unittests execution · 9d46cf4b
      Lukáš Doktor 提交于
      This patch allows running the tests in parallel, when
      AVOCADO_PARALLEL_CHECK env variable is set. It spawns 2xno_cpu workers
      (or less when there are not enough tests), captures the output and shows
      only output of failed workers. Before the exit it also reports the
      number of executed tests in the same fashion as normal unittest
      execution (without the number of failed tests, though).
      
      On my laptop this decreases the duration from 125s to 28s.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      9d46cf4b
    • L
      selftests.checkall: Improve the readability · 0e2cc213
      Lukáš Doktor 提交于
      This patch adds summary at the end of the execution and uses colors to
      mark start and finish of each section. This might produce some
      unexpected characters on redirections/unsupported terminals at the
      beginning and endings of the highlighted lines, but in most cases it
      looks way better and those +3 chars can be ignored by humans.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      0e2cc213
  6. 28 9月, 2016 1 次提交
  7. 27 9月, 2016 12 次提交
  8. 26 9月, 2016 5 次提交