-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Few issues running tests on dev machine #83
Comments
@gabhijit we are optimizing for test runs using the rust-vmm container. To successfully run test, you need to run them with the container as follows: docker run --device=/dev/kvm -it \
--security-opt seccomp=unconfined \
--volume $(pwd):/vmm-reference rustvmm/dev:v11
# in the container
pytest rust-vmm-ci tests/test_run_reference_vmm.py This is unfortunately not documented, and we should add these steps to "Getting Started" document.
Do you want to submit a fix for this one? |
I will send fixes to some of the points early next week. |
#95 Fixes this. |
@lauralt : Okay that makes sense, I am not sure though that there's an easy way of fixing the first issue - other than the one that I sent in the PR. So will it be fixed ever? Not sure, also this issue will be faced only first time running. But may be we can keep the issue open with that comment. I will add that as a separate comment. |
Current Status - If you are running |
Following issues are observed while running tests on my dev machine (
ubuntu 20.04
/python 3.8.5
)$ pytest-3 tests/test_run_reference_vmm.py ======================================================================== test session starts ========================================================================= platform linux -- Python 3.8.5, pytest-4.6.9, py-1.8.1, pluggy-0.13.1 rootdir: /home/gabhijit/Work/hyphenOs/rust-vmm/vmm-reference collecting ...
This likely happens due to all the download happening when the
test_run_reference_vmm.py
module gets 'import'ed bypytest-3
. Likely this can be fixed by moving thedownload
code inside asetUp
function (as discussed in one of the review comments.)cargo test --all
Following test case failsThis failure happens due to
python3-boto3
not been installed on my dev machine. I believe some updates to documentation should be able to fix this.pytest
andboto3
packages installed.pip install
The first line should use
/usr/bin/env python3
instead of having the hard-coded/usr/bin/python3
. This will allow people to run tests withvirtualenv
or tools likepyenv
and not necessarily system python3 that comes with the distro.The text was updated successfully, but these errors were encountered: