1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-22 22:03:43 +03:00

sysv-generator-test: Bump log level to info

Otherwise, non-fatal debug error logs might interfere with the test.

(cherry picked from commit a0807bdc2307d1208646e44ab639a929d6fd6b81)
(cherry picked from commit 08b3e551c6503b65a59acc70ecc0f73959484c5e)
This commit is contained in:
Daan De Meyer 2023-05-31 14:18:35 +02:00 committed by Luca Boccassi
parent 6bd42a6935
commit a3bb20dd41

View File

@ -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