saltstack/salt — pull request #4182 by zsimic (2013-03-20 23:23:17+00:00)
Title: Making tests runnable on OSX

Added a paragraph in the docs on how to run the tests (didn't see it in the doc, may be inaccurate though, found out by reading the code)

On OSX, tests couldn't start the background daemons at all due to resource.setrlimit() failing. With this change, the daemons are started properly, I believe other platforms shouldn't be impacted (only ones reporting infinity as hard limit...).
This also should fix this open issue: https://github.com/saltstack/salt/issues/3711

Not all tests are passing for me on OSX, but at least now they can get started :)

Setting up Salt daemons to execute tests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Waiting at most 0:02:00 for minions(minion, sub_minion) to connect back
* minion connected.
* sub_minion connected.
* Syncing minion's modules (saltutil.sync_modules)
* Synced minion modules: modules.runtests_helpers
* Synced sub_minion modules: modules.runtests_helpers