unit tests for state grains: use a subdirectory for config file

This way, there is no /tmp/grains created on test execution. And the issue
with test_absent_delete is always triggered.
Maybe we should use mocked files, but I'm not sure how to do it.
This commit is contained in:
Christophe Drevet-Droguet 2015-06-18 22:37:03 +02:00 committed by Christophe Drevet-Droguet
parent 4d1810bf4e
commit ed4d0646a4

View File

@ -16,7 +16,7 @@ from salt.states import grains as grains
grainsmod.__opts__ = grains.__opts__ = {
'test': False,
'conf_file': '/tmp/__salt_test_state_grains',
'conf_file': '/tmp/__salt_test_state_grains_config/minion',
'cachedir': '/tmp/__salt_test_state_grains_cache_dir',
}