1. 16 2月, 2016 5 次提交
    • C
      Remote/VM: move functionality from result to runners · 50cc98e9
      Cleber Rosa 提交于
      The functionality to run tests on remote machines and on VMs are
      implemented using a mixture of TestRunner and TestResult classes.
      
      In all fairness, it looks like the TestResult classes were abused
      because non-standard attributes were used as a foundation for that
      functionality. Now that `setup` and `tear_down` have been added
      to the TestRunner interface, let's move those custom features from
      the TestResult classes to the TestRunner ones.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
      50cc98e9
    • C
      avocado/core/job.py: add formal preprocessing of urls · b58c0005
      Cleber Rosa 提交于
      The parsed (and possibly processed) list of urls given on the command
      line is quite useful to other implementation of test runners (see
      the upcoming changes on the remote/vm runners). So, let's add a proper
      interface that can be used to customize/sanitize the urls given on
      the command line, and keep that as a reference in the `urls` attribute.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      b58c0005
    • C
      avocado/core/remote/runner.py: get the arguments from the job object · a32f09c8
      Cleber Rosa 提交于
      Instead of getting the application arguments from the test result,
      let's get them from from job object itself. The idea is that, once
      fnctionality is moved from the test result class to the test runner
      class, the same source of arguments can be used for the incoming
      code.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      a32f09c8
    • C
      avocado/core/runner.py: add optional setup and tear_down methods · 1fbbedaa
      Cleber Rosa 提交于
      We're adding extra functionality to test runners, were they seem to
      be more appropriate than in the test result classes. Let's add empty
      implementations on the base class so that their re-implementation
      is optional on inherited classes.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      1fbbedaa
    • C
      TestResultProxy: remove magical __getattr__ method · 43780661
      Cleber Rosa 提交于
      This implementation of __getattr__ has allowed users of the test
      result proxy, most importantly the result test runner, to ask for
      attributes, including important methods, that would only be available
      on the RemoteTestResult implementation.
      
      Things have been working more or less by pure chance, based on the
      lucky fact that the RemoteTestResult would be at the right place on
      the proxy `output_plugins`.
      
      Let's forbid users of the test result proxy to look for attributes
      that are not part of the test result "contract" by removing this
      magical (and rather evil) method.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      43780661
  2. 14 2月, 2016 1 次提交
  3. 12 2月, 2016 12 次提交
  4. 11 2月, 2016 2 次提交
  5. 10 2月, 2016 3 次提交
  6. 09 2月, 2016 1 次提交
  7. 06 2月, 2016 1 次提交
  8. 05 2月, 2016 6 次提交
  9. 04 2月, 2016 9 次提交