[tbot] Release 0.8.0

Harald Seiler hws at denx.de
Wed Nov 20 11:58:07 UTC 2019


Hello,

tbot version 0.8.0 is here.  The machine interface was completely
rewritten under the hood, to make it more flexible.  Please take a look
at the migration guide [1] for more info (configuration files will need
to be adjusted a bit).

The docs are now hosted at

    https://tbot.tools/index.html

A PDF version is also available [2].

Apart from the big machine refactor, these are the changes:

== Added ==
- `@tbot.with_lab`, `@tbot.with_uboot`, and `@tbot.with_linux` decorators to
  make writing testcase much simpler
- `linux.RedirStdout(f)` & `linux.RedirStderr(f)`: Redirect stdout and stderr symbols
- `Machine.init()` hook to call custom code after the machine was initialized.
  This can be used, for example, to init network manually in U-Boot.
- `tc.shell.check_for_tool()` testcase
- `tbot.skip()`: Skip a testcase
- `Machine.clone()`: Attempt creating a copy of a machine.  The two copies
  allow parallel interaction with the same host.

== Changed ==
- `linux.BuildMachine` is now a mixin called `linux.Builder`
- `linux.LabHost` is now a mixin called `linux.Lab`
- `linux.LinuxMachine` should be replaced by `linux.LinuxShell`
- `LabHost.new_channel()` was removed in favor of `LinuxShell.open_channel()`.
  `open_channel()` consumes the machine it is called on which means the
  equivalent to `new_channel()` now is:

      with mach.clone() as cl:
          chan = cl.open_channel("telnet", "192.0.2.1")

== Removed ==
- `exec0(stdout=f)`: Redirection should be done using `RedirStdout`.
- `linux.Env(var)`: Environment-Variable substitution is hard to control.  It
  is much easier to just use `mach.env(var)`.

== Fixed ==
- `Path.__fspath__()` erroneously returning a result, even though the contract
  that is assumed with this method cannot be upheld by tbot.


If you have any questions, feel free to ask!

[1]: https://tbot.tools/migration.html
[2]: https://github.com/Rahix/tbot/releases/download/v0.8.0/tbot.pdf
-- 
Harald

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-62  Fax: +49-8142-66989-80   Email: hws at denx.de



More information about the tbot mailing list