]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - test/sysv-generator-test.py
machined: use bus_message_read_id128() at one more place
[thirdparty/systemd.git] / test / sysv-generator-test.py
index 484b610a02ec3ebad327cda96a8a6e56a9ab3824..24fafbaaa49cce5682f93f05707072c1743b1153 100755 (executable)
@@ -52,7 +52,9 @@ class SysvGeneratorTest(unittest.TestCase):
         parsed generated units.
         '''
         env = os.environ.copy()
-        env['SYSTEMD_LOG_LEVEL'] = 'debug'
+        # We might debug log about errors that aren't actually fatal so let's bump the log level to info to
+        # prevent those logs from interfering with the test.
+        env['SYSTEMD_LOG_LEVEL'] = 'info'
         env['SYSTEMD_LOG_TARGET'] = 'console'
         env['SYSTEMD_SYSVINIT_PATH'] = self.init_d_dir
         env['SYSTEMD_SYSVRCND_PATH'] = self.rcnd_dir
@@ -80,7 +82,7 @@ class SysvGeneratorTest(unittest.TestCase):
                 cp = RawConfigParser(dict_type=MultiDict)
             cp.optionxform = lambda o: o  # don't lower-case option names
             with open(service) as f:
-                cp.readfp(f)
+                cp.read_file(f)
             results[os.path.basename(service)] = cp
 
         return (err, results)