On Thu, Dec 16, 2021 at 10:14 PM Milan Zamazal <mzama...@redhat.com> wrote: > > Hi, > > when I run Vdsm tests as a non-root user in vdsm-test-centos-8 > container, they systematically fail on several storage tests. I run the > tests as > > podman run -it -v $HOME:$HOME --userns=keep-id vdsm-test-centos-8 $HOME/test.sh
Why do you need the --userns option? You run this in a container because your development environment is not compatible - right? > where test.sh is > > #!/bin/sh > > export TRAVIS_CI=1 > cd .../vdsm > ./autogen.sh --system > make clean > make I never run autogen and make during the tests, this can be done once after checkout or when modifying the makefiles. > make lint > make tests You are missing: make storage Without this, a lot of tests will be skipped or xfailed. > make tests-storage > > The failing tests are in devicemapper_test.py, outofprocess_test.py and > qemuimg_test.py. I have also seen a test failure in nbd_test.py but not > always. Is it a problem of the tests or of my environment? nbd_test.py should be skipped unless you run as root, or have running supervdsm serving your user. I usually run the storage tests like this locally on Fedora (35 now): make storage tox -e storage Results: storage/devicemapper_test.py - 5 pass, rest skip storage/nbd_test.py - 2 pass, rest skip storage/qemuimg_test.py - 2 skips storage/outofprocess_test.py - 3 skips, rest pass 2350 passed, 161 skipped, 102 deselected, 3 xfailed, 13093 warnings in 134.80s (0:02:14) I'll try later using the container. Nir
_______________________________________________ Devel mailing list -- devel@ovirt.org To unsubscribe send an email to devel-le...@ovirt.org Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/devel@ovirt.org/message/I6TONAPTZI4WN3LRZICH7KIIKM5CEDYB/