1. 08 6月, 2017 1 次提交
  2. 03 5月, 2017 1 次提交
  3. 06 4月, 2017 1 次提交
  4. 08 3月, 2017 1 次提交
    • C
      Exit codes: review AVOCADO_JOB_FAIL and AVOCADO_FAIL usage · d20ce0bb
      Cleber Rosa 提交于
      The definition of AVOCADO_JOB_FAIL was "Something went wrong with the
      Job itself, by explicit avocado.core.exceptions.JobError exception",
      while AVOCADO_FAIL is defined as "Something else went wrong and
      avocado failed (or crashed). Commonly used on command line validation
      errors".
      
      With those in mind, I support that AVOCADO_JOB_FAIL should be slightly
      adjusted (see changes in the diff), to include other types of
      failures, but limited to job *execution* failures.  AVOCADO_FAIL is
      already generic enough, so there's no need to change its definition.
      This is important, IMHO, because users could quickly understand if a
      job was executed, and failed, or if some earlier type of failure (such
      as command line validation) happened.
      
      With this updated definition, I spotted a few places where AVOCADO_FAIL
      and AVOCADO_JOB_FAIL usage should be changed.  Examples:
      
       * In `avocado.plugins.diff` the resultsdir is attempted to be read, but
         in my book that still doesn't qualify as a job failure, because a job
         is not being executed.
      
       * In `avocado.plugins.replay` while there's functionality to run a
         (replayed) job, many of the occurrences of AVOCADO_JOB_FAIL are
         similar to the `avocado.plugins.diff` and happen while trying to load
         jobdata from the previous job resultsdir.
      
       * In `avocado.plugins.multiplex` the situation is a bit more tricky.  The
         same code is executed when multiple avocado subcommands are executed.
         If the currently executed command is `run`, it would mean that a job is
         being attempted to be executed.  In fact, a job *is* already executing
         at this point, so a AVOCADO_JOB_FAIL is appropriate.  In other scenarios,
         such as when running `$ avocado multiplex`, these failures have nothing
         to do with jobs, so AVOCADO_FAIL is appropriate.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      d20ce0bb
  5. 04 3月, 2017 1 次提交
    • L
      varianter: Remove the unnecessary "ignore_new_data" interface · 62829d0b
      Lukáš Doktor 提交于
      The "ignore_new_data" was used by "replay" to override Varianter and
      tell it to stop accepting new data by other plugins (like yaml_to_mux).
      With the new changes the plugins are part of the Varianter, so when
      "replay" replaces it with the old (parsed) one, it will not parse itself
      again, therefor the default_params and variants stays untouched.
      
      To make sure this works well a unittest is included.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      62829d0b
  6. 06 2月, 2017 1 次提交
  7. 03 1月, 2017 1 次提交
  8. 23 11月, 2016 1 次提交
  9. 02 11月, 2016 2 次提交
  10. 05 10月, 2016 2 次提交
    • L
      avocado: Replace `--multiplex` with `--mux-yaml` · 6be4aca0
      Lukáš Doktor 提交于
      Recently we created separate `yaml2mux` plugin, which keeps using the
      `--multiplex` argument. The connection between yaml2mux and multiplex is
      not really obvious and the separation was meant to bring the order to
      the avocado params system. This is another step which replaces the
      `--multiplex|-m` with `--mux-yaml|-m` and makes it more obvious that
      it's related to `yaml` files and it's also related to `multiplexation`.
      
      You might notice that the old `-m` was kept. It's very convenient and
      also allows coexisting of old and new versions (useful eg. in remote
      executions).
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      6be4aca0
    • L
      avocado.plugins.replay: Change the `replay_ignore mux` meaning · d01ed093
      Lukáš Doktor 提交于
      Currently `replay` has hardcoded treating of `--multiplex`, which is not
      systematic and even now allows some unhandled errors (like --mux-filter
      along with replay-test-status). With this patch I propose to ignore all
      multiplex related options and use the one from the job and process the
      mux only when the user uses `--replay-ignore mux`. This means it does
      not allow mixing of previous job's mux with new options, on the other
      hand it's simple and easily understandable:
      
      1. no `--replay-ignore mux` => all --mux options are ignored and the
         original Mux is used
      2. `--replay-ignore mux` => old Mux is ignored and full new Mux is used
         including system-wide args, --mux options and the yaml parser (-m)
      
      To make things clear this patch always logs a warning notifying the user
      about the current situation.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      d01ed093
  11. 24 8月, 2016 2 次提交
  12. 18 7月, 2016 1 次提交
  13. 03 5月, 2016 1 次提交
    • L
      avocado.core.loader: Fix the test alias resolver · 3ff48800
      Lukáš Doktor 提交于
      This patch fixes and improves resolving of the test aliases (paths
      relative to `data_dir.get_tests_dir`).
      
      1. It removes the magic `.py` suffix, which prevented non-python files
         from being resolved (simple.sh was resolved to $tests/simple.sh.py)
      2. It adds the feature to filter the class/method from the test
         reference by parsing $test_reference:$class.$method for implicit
         resolver. (previously this worked only for absolute path resolver)
      
      Visible changes are:
      
      * `avocado run passtest` => fails (used to work)
      * `avocado run passtest.py` => works (did not work)
      * `avocado run env_variables.sh` => works (did not work)
      * `avocado run passtest.py:PassTest.test` => works (did not work)
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      3ff48800
  14. 17 3月, 2016 1 次提交
  15. 09 3月, 2016 1 次提交
  16. 03 3月, 2016 1 次提交
    • L
      avocado: Remove the "View" concept · 2105f912
      Lukáš Doktor 提交于
      The "View" concept was developed to abstract the messages and events.
      The problem is it was only abused to pass the status to other places, to
      colorize the messages and to allow creating paginated view.
      
      There already is a nice class hooked to all important events, the
      "TestResult".
      
      For (not only human readable) messages this commit uses the standard
      python logging as it's pretty well known, widely used and very scalable.
      The colored output is handled by already existing
      "ProgressStreamHandler", which maps: DEBUG,INFO,WARNING and >=ERROR
      messages to previously existing: minor, message, warning and error event
      types.
      
      The paginator was unified and is initialized during logging reconfigure.
      During reconfigure all previously logged messages are re-logged into the
      output so one does not lose those messages. Another great difference is
      that the Paginator is cleaned at exit by avocado and does not require
      complex handling to avoid broken console. To use paginator one just
      enables it in "args" and writes to any available stream/stdout/stderr
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      2105f912
  17. 18 2月, 2016 1 次提交
  18. 03 2月, 2016 1 次提交
  19. 27 1月, 2016 1 次提交
  20. 21 1月, 2016 1 次提交
  21. 20 1月, 2016 1 次提交
  22. 16 1月, 2016 1 次提交