Skip to content
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

test_python_cmd_build fails in offline VM build #95

Open
jayvdb opened this issue Nov 24, 2020 · 0 comments
Open

test_python_cmd_build fails in offline VM build #95

jayvdb opened this issue Nov 24, 2020 · 0 comments

Comments

@jayvdb
Copy link

jayvdb commented Nov 24, 2020

It would be nice if these tests where given a skipable marker, like 'online', so pytest -k 'not online' works.

A nice online check is whether name github.com can be resolved.

In the meantime pytest -k 'not test_python_cmd_build' wfm.

[   31s] E           subprocess.CalledProcessError: Command '['git', 'clone', 'https://github.com/kevinconway/rpmvenv.git', '/tmp/pytest-of-abuild/pytest-0/test_python_cmd_build_https___3/rpmvenv']' returned non-zero exit status 128.
[   31s] 
[   31s] /usr/lib64/python3.6/subprocess.py:291: CalledProcessError
[   31s] ---------------------------- Captured stderr setup -----------------------------
[   31s] Cloning into '/tmp/pytest-of-abuild/pytest-0/test_python_cmd_build_https___3/rpmvenv'...
[   31s] fatal: unable to access 'https://github.com/kevinconway/rpmvenv.git/': Could not resolve host: github.com
[   31s] =========================== short test summary info ============================
[   31s] ERROR tests/test_cli.py::test_python_cmd_build[https://github.com/kevinconway/rpmvenv.git-python2.7-False-True-True]
[   31s] ERROR tests/test_cli.py::test_python_cmd_build[https://github.com/kevinconway/rpmvenv.git-python2.7-False-True-False]
[   31s] ERROR tests/test_cli.py::test_python_cmd_build[https://github.com/kevinconway/rpmvenv.git-python2.7-False-False-True]
[   31s] ERROR tests/test_cli.py::test_python_cmd_build[https://github.com/kevinconway/rpmvenv.git-python2.7-False-False-False]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants