Comment 4 for bug 368157

Revision history for this message
Markus Korn (thekorn) wrote :

Thanks Ara and Javier for your comments,
I understand that the naming is not perfect, I see your points and I will think about it again.

src/desktoptesting_testsuites/__init__.py is needed for a little trick I used to get rid of `TESTS_SHARE = "."`. Using the cwd here is problematic. For example when you try to run the ubuntu-desktop-tool from outside the package root no testcases will be found. I solved this issue by converting src/desktop_testsuites into a package, and using pkg_resources.resource_filename("desktoptesting_testsuites") to get the path to the testsuites.

Markus