1. 04 10月, 2016 1 次提交
  2. 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
  3. 26 9月, 2016 2 次提交
  4. 20 9月, 2016 1 次提交
  5. 27 7月, 2016 1 次提交
  6. 27 4月, 2016 1 次提交
  7. 20 2月, 2016 1 次提交
  8. 03 9月, 2015 1 次提交
    • C
      Selftests: drop nose usage for plain unittest discovery · e9c0d813
      Cleber Rosa 提交于
      The unittest module, and unittest2 backport on Python 2.6, is capable of
      finding unittests and running them. So, effectively, we do not need nose
      at all.
      
      This patch removes the dependency on nose, replacing the run script
      with a version based solely on the unittest module.
      
      One change of functionality is that run now looks and runs tests in the
      standard selftests directories (unit, functional, doc), and does not
      accept command line arguments. If one wants to run a subset of them,
      it's pretty easy to just use the unittest module for that:
      
       $ python -m unittest discover -s selftests/unit
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      e9c0d813
  9. 13 6月, 2015 1 次提交
  10. 08 1月, 2015 1 次提交
  11. 04 9月, 2014 1 次提交