1. 16 8月, 2017 1 次提交
  2. 24 5月, 2017 1 次提交
  3. 10 3月, 2017 1 次提交
    • A
      selftests: selfcheck with results in a tempdir · a6eee6f1
      Amador Pahim 提交于
      To make sure the seltests does not leave job results behind,
      we introduced a check which compares the job-results directory
      content from before the selftets with the content after the
      selftests. But using `AVOCADO_SELF_CHECK=1 make check`, we
      expect at least one extra result in the job-results directory,
      making the content of the job-results to not be the same after
      the tests.
      
      This patch changes the avocado command used for self check
      in `make check`, pointing the results to a temporary directory.
      
      Reference: https://trello.com/c/y57xZSUSSigned-off-by: NAmador Pahim <apahim@redhat.com>
      a6eee6f1
  4. 16 2月, 2017 1 次提交
    • A
      selftests: suppress missing directory message · d2fedfc7
      Amador Pahim 提交于
      checkall runs `ls` twice in the job-results dir. Once before the
      selftests and once again after the tests, comparing the outputs to make
      sure there's no new results there after the selftests.
      
      When the job-results does not exist in advance (the case in travis
      environments), the message 'ls: cannot access /home/travis/avocado/job-results:
      No such file or directory' is shown in the logs. The message is harmless
      and does not affect the check. Let's just suppress the stderr from the
      `ls` command in that check.
      
      Reference: https://trello.com/c/IBoLAJjfSigned-off-by: NAmador Pahim <apahim@redhat.com>
      d2fedfc7
  5. 03 2月, 2017 2 次提交
  6. 02 2月, 2017 1 次提交
    • A
      selftests: exclude E722 from pep8 check · 4973475e
      Amador Pahim 提交于
      pep8 v2.3.0 introduced the check for bare except clause (E722). Until
      now, we don't explicitly disable the pep8 check we don't want because
      inspect has a default exclude list (E501, E265, W601 and E402).
      
      Let's make explicit the exclude list for the checks we don't want in our
      selftests, adding to the list the new E722 check.
      Signed-off-by: NAmador Pahim <apahim@redhat.com>
      4973475e
  7. 10 1月, 2017 1 次提交
    • L
      selftests.checkall: Add signed-off-by check · 3897ce39
      Lukáš Doktor 提交于
      The signed-off-by check makes sure the latest commit contains correct
      "Signed-off-by" message. As this check is executed per each commit in
      travis, it should make sure all new commits contain this message which
      is quite important as it states that the author agrees with the terms
      from our contribution guide.
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      3897ce39
  8. 04 10月, 2016 1 次提交
  9. 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
  10. 26 9月, 2016 2 次提交
  11. 20 9月, 2016 1 次提交
  12. 27 7月, 2016 1 次提交
  13. 27 4月, 2016 1 次提交
  14. 20 2月, 2016 1 次提交
  15. 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
  16. 13 6月, 2015 1 次提交
  17. 08 1月, 2015 1 次提交
  18. 04 9月, 2014 1 次提交