1. 14 10月, 2017 3 次提交
    • C
      avocado.Test: deprecate datadir property · 53445a82
      Cleber Rosa 提交于
      This change deprecates the use of the of the `datadir` property,
      and switches to `get_data()` instead.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      53445a82
    • C
      examples/tests/whiteboard.py: remove chdir into datadir · b69a24d3
      Cleber Rosa 提交于
      The whiteboard test is an example test, and, since, we're about to
      deprecate the datadir attribute, let's remote this call to chdir.
      
      If we believe that's necessary to stress this part of the API, let's
      write a (non-example) test for that.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      b69a24d3
    • C
      avocado.Test: introduce get_data() method · 0941cdd7
      Cleber Rosa 提交于
      This method allows to look for test data in ways that are more
      flexible than the current "datadir" feature currently available.
      
      The current "datadir" is bound to the test filename only, and
      can not provide different data for different tests hosted within
      a single test file.
      
      The newly introduced get_data() method looks for test data in
      various locations, to be able to provide custom data not only
      to different tests hosted inside a single test file, but also
      to different variants.
      
      Note about this alternative implementation of `get_data()`: it does so
      in a much more detached form.  It allows for other test types to
      clearly change the way data files are stored and accessed.  It also
      introduces the concept of named data sources.
      
      In the previous implementation, the types of "data dirs" were hard
      coded, while in this approach, they're defined at the class level and
      it's up to the `get_data()` implementation to deal with it.
      Consequently, the `get_data()` method gets a second (optional)
      parameter that allows the user to specify from which data source the
      data file should be retrieved.
      
      This is necessary, for example, when we add configurability to sources
      of data files, such as expected `stdout`, `stderr` and `output` files.
      Signed-off-by: NCleber Rosa <crosa@redhat.com>
      0941cdd7
  2. 13 10月, 2017 15 次提交
  3. 12 10月, 2017 4 次提交
  4. 11 10月, 2017 7 次提交
  5. 10 10月, 2017 2 次提交
  6. 09 10月, 2017 1 次提交
  7. 06 10月, 2017 8 次提交