From 2fe2b3e420e14af8955f6a87b5c0c893de5e187f Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 8 Jul 2017 10:30:57 +0300 Subject: [PATCH] - Fix test on Wheezy and Jessie. --- tests/test_collectd.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_collectd.py b/tests/test_collectd.py index e33665d..5816408 100644 --- a/tests/test_collectd.py +++ b/tests/test_collectd.py @@ -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( -- GitLab