1. 25 1月, 2016 2 次提交
    • C
      Test: turn datadir into a property · 496e89d9
      Cleber Rosa 提交于
      The reason being that `datadir` can then be properly documented as
      first class citizens so that Test class users (test writers) can rely
      on it.
      
      Other reason is that that it can be overloaded by inherited classes
      such as `SimpleTest`, without the need to (re-)set other attributes
      that depend on it.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      496e89d9
    • C
      Test: remove reference related methods from public namespace · 7c967bb0
      Cleber Rosa 提交于
      The methods `record_reference_stdout`, `record_reference_stderr`
      `check_reference_stdout` and `check_reference_stderr` are publicly
      visible, but are not intended to be used by test writers and are
      not intended to have API stability.
      
      Let's rename them so that they're hidden from the Avocado test
      writer.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      7c967bb0
  2. 21 1月, 2016 1 次提交
  3. 20 1月, 2016 11 次提交
  4. 19 1月, 2016 4 次提交
  5. 18 1月, 2016 1 次提交
  6. 16 1月, 2016 5 次提交
    • L
      avocado.core.runner: Fix problems with exceptions that can't be pickled · 6cedd186
      Lucas Meneghel Rodrigues 提交于
      I've noticed this when writing tests using the boto3 (Amazon
      AWS) API - for some exceptions, not all the arguments of the
      exception can be pickled, leading to the following crash:
      
          (1/2) scylla_longevity.py:LongevityTest.test_20_minutes: -
          Avocado crashed: TypeError: ('__init__() takes exactly 3 arguments (2 given)', <class 'botocore.exceptions.ClientError'>, ("An error occurred (InvalidAMIID.NotFound) when calling the RunInstances operation: The image id 'ami-20776841' does not exist",))
          Traceback (most recent call last):
      
           File "/home/lmr/Code/avocado.lmr/avocado/core/job.py", line 451, in _run
             timeout=self.timeout)
      
           File "/home/lmr/Code/avocado.lmr/avocado/core/runner.py", line 368, in run_suite
             deadline)
      
           File "/home/lmr/Code/avocado.lmr/avocado/core/runner.py", line 284, in run_test
             if test_status.interrupt:
      
           File "/home/lmr/Code/avocado.lmr/avocado/core/runner.py", line 82, in __getattribute__
             self._tick()
      
           File "/home/lmr/Code/avocado.lmr/avocado/core/runner.py", line 111, in _tick
             msg = self.queue.get()
      
           File "/usr/lib/python2.7/multiprocessing/queues.py", line 378, in get
             return recv()
      
          TypeError: ('__init__() takes exactly 3 arguments (2 given)', <class 'botocore.exceptions.ClientError'>, ("An error occurred (InvalidAMIID.NotFound) when calling the RunInstances operation: The image id 'ami-20776841' does not exist",))
      
          Please include the traceback info and command line used on your bug report
          Report bugs visiting https://github.com/avocado-framework/avocado/issues/new
      
      Since we can't restore all the arguments of this exception
      upon recv, we have to handle any exception that happens
      here and break out from the _tick() loop.
      Signed-off-by: NLucas Meneghel Rodrigues <lookkas@gmail.com>
      6cedd186
    • C
      Merge branch 'replay_v7' · d790c161
      Cleber Rosa 提交于
      d790c161
    • A
      docs: Replay feature · 99d3d059
      Amador Pahim 提交于
      Doccument the --replay option for the run command.
      Signed-off-by: NAmador Pahim <apahim@redhat.com>
      99d3d059
    • A
      selftests/functional/replay.py: tests for job replay · d2efe199
      Amador Pahim 提交于
      Basic functional tests for the job replay feature.
      Signed-off-by: NAmador Pahim <apahim@redhat.com>
      d2efe199
    • A
      avocado.core: job replay support · a8e4c54d
      Amador Pahim 提交于
      job replay support using the run option "--replay "
      implements the job replay, retrieving the original job urls, multiplex and
      configuration.
      
      The option "--replay-test-status " is fully functional,
      allowing users to replay only the variants that faced a given status in
      the original job.
      
      To ignore some original job information, the option
      "--replay-job-ignore " can be used.
      
      Notice if can inform the urls and/or the multiplex using the command line.
      The options informed in the command line will be used, making the replay job ignore
      that information from the source job.
      Signed-off-by: NAmador Pahim <apahim@redhat.com>
      a8e4c54d
  7. 15 1月, 2016 1 次提交
  8. 14 1月, 2016 5 次提交
  9. 13 1月, 2016 2 次提交
  10. 12 1月, 2016 1 次提交
  11. 09 1月, 2016 4 次提交
  12. 08 1月, 2016 3 次提交