74.0 Home Alone¶
The Avocado team is proud to present another release: Avocado 74.0, AKA “Home Alone”, is now available!
Release documentation: Avocado 74.0
Users/Test Writers¶
A new test type,
TAP
has been introduced along with a new loader and resolver. With aTAP
test, it’s possible to execute a binary or script, similar to aSIMPLE
test, and part its Test Anything Protocol output to determine the test status.It’s now possible to enforce colored or non-colored output, no matter if the output is a terminal or not. The configuration item
color
was introduced in therunner.output
section, and recognize the valuesauto
,always
ornever
.
Bug Fixes¶
The
safeloader
mechanism that discovers both Avocado’s Python basedINSTRUMENTED
tests, and Python’s native unittests, would fail to find any tests if any of the classes on a given file contained references to a module that was not on a parent location. Now, thesafeloader
code will continue the discovery process, ignoring the modules that were not found at parent locations.
Utility APIs¶
avocado.utils.kernel
received a number of fixes and cleanups, and also new features. It’s now possible to configure the kernel for multiple targets, and also set kernel configurations at configuration time without manually touching the kernel configuration files. It also introduced theavocado.utils.kernel.KernelBuild.vmlinux()
property, allowing users to access that image if it was built.avocado.utils.network
utilitiesavocado.utils.network.ping_check()
andavocado.utils.network.set_mtu_host()
now are plain functions, instead of methods of a class that shared nothing between them.New functions such as
avocado.utils.multipath.add_path()
, :func:avocado.utils.multipath.remove_path()
avocado.utils.multipath.get_mpath_status()
andavocado.utils.multipath.suspend_mpath()
have been introduced :func:to theavocado.utils.multipath
module.The
avocado.utils.vmimage
module will not try to create snapshot images when it’s not needed, acting lazily in that regard. It now provides a different method for download-only operations,avocado.utils.vmimage.Image.download()
that returns the base image location. The behavior of theavocado.utils.vmimage.Image.get()
method is unchanged in the sense that it returns the path of a snapshot image.
Internal Changes¶
A PyLint configuration file was added to the tree, facilitating the use of the standard Python linter when developing Avocado in IDEs that support this feature.
For more information, please check out the complete Avocado changelog.