pytest-testinfra
pytest-testinfra copied to clipboard
Support OS X
Right now the test fail when running on OS X since SystemInfo.type == "darwin"
is supported by the File
module.
I resolved this in #20 by doing a check for SystemInfo.type.endswith("bsd") or SystemInfo.type == "darwin"
. Hopefully it would be that easy to get OS X working in the other modules.
Hi,
I don't have any OS X here. So I cannot add support for it. If you achieve this maybe http://docs.travis-ci.com/user/osx-ci-environment/ is a good test plaform for running OS X specific tests.
Oh, nice. Yeah, I am happy to dig into getting OS X working.
I will try to pitch in with a fix here and there too.
OSX support would be nice, looking at the current travis config, it looks like that docker is used. If multiple OS's and distros are to be tested against then this is doc describes how to do it.
https://docs.travis-ci.com/user/multi-os/
I've created a pull request for the info in #177 Tested on my local Mac (El Capital, Version 10.11.6)
Could not figure out how to test with travis, however
@philpep - Hope you are doing well and thank you for creating this tool!
I'm wondering if you are are still looking for volunteers and or help with creating MacOS integration(s)? If so, i'm working on a a pretty significant addition to this library that will include the following:
- Homebrew package support for OSX (MacOS) based hosts.
- Enhancements and helpers to the
system_info
to help aide it OS identification and make testing less redundant. - A new backend VagrantBackend which will help facilitate the ease of automated CI and testing when using Vagrant. You just tell the VagrantBackend hich Vagrant environment you want to use and the backend will handle the setup and teardown of your CI jobs via the backend letting you focus on creating new integrations like the docker host fixture that you have created in
test/conftest.py
- Travis CI enhancements to make sure OSX and base tests still work.
I'm still ironing out the problems with Travis CI but hope to have a pull request for you soon to address these enhancements.
I'm looking for any constructive feedback to help make these additions better and look forward to hearing and working with you.
Is there any plans to add full support for "darwin" across the modules?