pytest-testinfra icon indicating copy to clipboard operation
pytest-testinfra copied to clipboard

Support OS X

Open brettlangdon opened this issue 9 years ago • 7 comments

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.

brettlangdon avatar Oct 14 '15 23:10 brettlangdon

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.

philpep avatar Oct 15 '15 08:10 philpep

Oh, nice. Yeah, I am happy to dig into getting OS X working.

brettlangdon avatar Oct 15 '15 13:10 brettlangdon

I will try to pitch in with a fix here and there too.

amitsaha avatar Oct 18 '15 00:10 amitsaha

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/

jcftang avatar Mar 12 '16 11:03 jcftang

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

gbirke avatar Jan 13 '17 00:01 gbirke

@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:

  1. Homebrew package support for OSX (MacOS) based hosts.
  2. Enhancements and helpers to the system_info to help aide it OS identification and make testing less redundant.
  3. 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
  4. 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.

codylane avatar Jun 29 '17 19:06 codylane

Is there any plans to add full support for "darwin" across the modules?

shakefu avatar Jan 26 '24 01:01 shakefu