user-cont / conu

conu - python API for your containers
http://conu.readthedocs.io/en/latest/
MIT License
165 stars 33 forks source link

Testing in VM fails #308

Closed fasashen closed 5 years ago

fasashen commented 5 years ago

Running make test-in-vm or vagrant up doesn't pass the docker tests.

It fails in tries to prepare docker containers and images in conftest.py, when it execs command inside a container: docker container run --name nc-container registry.fedoraproject.org/fedora-minimal:26 microdnf install nmap-ncat

subprocess.CalledProcessError: Command '['docker', 'container', 'run', '--name', 'nc-container', 'registry.fedoraproject.org/fedora-minimal:26', 'microdnf', 'install', 'nmap-ncat']' returned non-zero exit status 137.

I've tested it on both macOS and Windows machines and it just throws this message every time. So to avoid it I manually create containers for test purposes, so pytest skips this line.

fasashen commented 5 years ago

Sorry, the issue is solved in PR #307.

TomasTomecek commented 5 years ago

No worries, glad it's resolved now.