[Pkg-nagios-changes] [SCM] UNNAMED PROJECT branch, debian/master, updated. 810edbdd3feedbfe37f4a65bee50b57b2f60fa2a

Naparuba naparuba at gmail.com
Tue Feb 28 22:08:55 UTC 2012


The following commit has been merged in the debian/master branch:
commit ca4b79fdd37dd223340320e4151128ec5cecf8a8
Author: Naparuba <naparuba at gmail.com>
Date:   Thu Dec 15 16:50:04 2011 +0100

    Fix : perfdata are stripped now, so fix the test.

diff --git a/test/test_module_host_perfdata.py b/test/test_module_host_perfdata.py
index 3744b4a..c60b7cc 100755
--- a/test/test_module_host_perfdata.py
+++ b/test/test_module_host_perfdata.py
@@ -73,9 +73,9 @@ class TestConfig(ShinkenTest):
 
         fd = open(mod.path)
         buf = fd.readline()
-        #print "BUF:", buf
-        comparison = '%d\t%s\t%s\t%s\t%s\n' % (t, "test_host_0", 'BAD ', 'DOWN', ' value1=0 value2=0')
-        #print "Comparison:", comparison
+        print "BUF:", buf
+        comparison = '%d\t%s\t%s\t%s\t%s\n' % (t, "test_host_0", 'BAD', 'DOWN', 'value1=0 value2=0')
+        print "Comparison:", comparison
         self.assert_(buf == comparison)
         fd.close()
         os.unlink(mod.path)
@@ -99,7 +99,7 @@ class TestConfig(ShinkenTest):
         buf = fd.readline().decode('utf8')
         
         #print "BUF:", buf
-        comparison = u'%d\t%s\t%s\t%s\t%s\n' % (t, "test_host_0", 'BAD ', ' value1=0 value2=0'+u'\xf6', 'DOWN')
+        comparison = u'%d\t%s\t%s\t%s\t%s\n' % (t, "test_host_0", 'BAD', 'value1=0 value2=0'+u'\xf6', 'DOWN')
         #print "Comparison:", comparison
         self.assert_(buf == comparison)
         fd.close()

-- 
UNNAMED PROJECT



More information about the Pkg-nagios-changes mailing list