1. 13 5月, 2017 2 次提交
    • C
      Job: add time accounting · c632993f
      Cleber Rosa 提交于
      It may be useful to users of the Job class to have information on how
      much time it took for it to run.  Since the goal for the Job class is
      to be flexible when it comes to its usage, it may not be possible to
      track the execution time if users follow a different path.
      
      For now, the time accouting is done automatically if users use the
      `run()` method.
      
      If advanced users of the Job class choose to set the start time, end
      time and elapsed time themselves, they are free to do it and `run()`
      will never overwrite it.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      c632993f
    • C
      Job Pre/Post plugins: move them to the appropriate location · 5c375c51
      Cleber Rosa 提交于
      The JobPre and JobPost plugin interfaces were intended to be run
      before and after the job, but in reality they have been executed
      at different points *within* the job execution.
      
      This puts the execution of those plugins at their original intended
      location:
      
       * Plugins implementing JobPre will be executed right after the Job
         instance is created, *before any other action*, such as the
         creation of the test suite.
      
       * Plugins implementing JobPost will be executed right after the Job
         instance `run()` method.
      
       * Plugins implementing `Result` will be executed after JobPost ones.
      
      Users relying on the old location please take notice.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      5c375c51
  2. 12 5月, 2017 1 次提交
  3. 11 5月, 2017 1 次提交
  4. 06 5月, 2017 3 次提交
  5. 05 5月, 2017 4 次提交
  6. 04 5月, 2017 12 次提交
  7. 03 5月, 2017 6 次提交
  8. 02 5月, 2017 2 次提交
  9. 30 4月, 2017 2 次提交
  10. 28 4月, 2017 3 次提交
  11. 27 4月, 2017 4 次提交
    • A
      html: split Test ID · 43c8ea31
      Amador Pahim 提交于
      Test ID has the test UID, the Test Name and the Variant. Let's split
      those three information so users can order by any of them separately.
      Signed-off-by: NAmador Pahim <apahim@redhat.com>
      43c8ea31
    • A
      html: add params as tooltip for test · be8228c9
      Amador Pahim 提交于
      Convenience tooltip to expose the parameters available to the test.
      Signed-off-by: NAmador Pahim <apahim@redhat.com>
      be8228c9
    • A
      skip exceptions cleanup · aa274217
      Amador Pahim 提交于
      The TestDecoratorSkip and TestTimeoutSkip exceptions are not used
      anymore. This patch removes them from avocado.exceptions and simplifies
      the exception handlers in avocado.test
      
      The only missing piece is to remove the TestSetupSkip exception, when the
      time to drop the self.skip() comes.
      Signed-off-by: NAmador Pahim <apahim@redhat.com>
      aa274217
    • A
      skip classes: internal improvements · d6056afb
      Amador Pahim 提交于
      Due to the deprecation of the self.skip(), the availability of the skip
      decorators and the new CANCEL status, some internal improvements are
      important to keep our behaviour sane and our own code sound and clean.
      
      - The test.SkipTest class was renamed to test.MockingTest to be even more
        generic, intending to be overridden by sub-classes that make the test
        to end both with SKIP or CANCEL status. To keep it generic,
        test.MockingTest class will not SKIP the test if used directly anymore.
      
      - The test.TimeOutSkipTest and test.ReplaySkipTest classes now are using
        the skip decorators instead of raising an exception in setUp(), since
        'skipping' the test means 'don't execute anything', not even the
        setUp().
      
      - The test.DryRunTest class, which is expected to log itself in setUp()
        and then abort the test execution, is now using self.cancel() (instead
        of raising a SKIP exception), being now compliant with the concept
        that a SKIP test cannot execute anything.
      
      - Selftests were adjusted accordingly.
      Signed-off-by: NAmador Pahim <apahim@redhat.com>
      d6056afb