avocado-framework / avocado

Avocado is a set of tools and libraries to help with automated testing. One can call it a test framework with benefits. Native tests are written in Python and they follow the unittest pattern, but any executable can serve as a test.
https://avocado-framework.github.io/
Other
345 stars 343 forks source link

Fix apt unit tests #6029

Open dnegreira opened 2 months ago

dnegreira commented 2 months ago

This is some of the work in preparation for the debian packaging on https://github.com/avocado-framework/avocado/pull/5912.

I have separated the fixes in two commits, let me know if this is ok.

On a44d5abe4b9776cebc6d782ae86c986bfff58a63 I have fixed the Ubuntu/debian version detection as it was not retrieving the correct versions.

On eff2add503f662353bf3ec3f54c352b536685248 I have fixed the unit test by adding a function to retrieve the binary based on the distro version.

Happy to hear any feedback or improvements.

Resolves: https://github.com/avocado-framework/avocado/issues/6028