mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-11-24 08:23:46 +03:00
setup: limit pytest to 'tests' subdir
The libvirt git repo contains test data that represents the layout of files in sysfs, which has two subdirs that mutually reference each other with symlinks. When pytest does test discovery it will traverse every directory it finds underneath the libvirt-python checkout. Since we checkout libvirt as a sub-dir, pytest traverses everything in libvirt git and gets stuck in an infinite loop following symlinks in the libvirt test data. Telling pytest to only look at the 'tests' subdir avoids this extra traversal. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Reference in New Issue
Block a user