mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
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:
parent
4d1810bf4e
commit
ed4d0646a4
@ -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',
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user