Skip to content
Snippets Groups Projects
Commit 2fe2b3e4 authored by nimrod's avatar nimrod
Browse files

- Fix test on Wheezy and Jessie.

parent 6330b969
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,9 @@ def test_collectd_service(Service):
pass
def test_collectd_config(File, Command):
assert Command('collectd -t').rc == 0
def test_collectd_config(File, Command, Sudo):
with Sudo():
assert Command('collectd -t').rc == 0
assert File('/etc/collectd.conf').is_file or File(
'/etc/collectd/collectd.conf').is_file
assert File('/etc/collectd.conf.d').is_directory or File(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment