mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 01:55:22 +03:00
sysv-generator test: always log to console
Set $SYSTEMD_LOG_TARGET so that the output always goes to stdout/stderr. This fixes running the test as root, as that logged to the journal previously. https://github.com/systemd/systemd/issues/195
This commit is contained in:
parent
63432f5d95
commit
6b7d32add4
@ -60,6 +60,7 @@ class SysvGeneratorTest(unittest.TestCase):
|
||||
'''
|
||||
env = os.environ.copy()
|
||||
env['SYSTEMD_LOG_LEVEL'] = 'debug'
|
||||
env['SYSTEMD_LOG_TARGET'] = 'console'
|
||||
env['SYSTEMD_SYSVINIT_PATH'] = self.init_d_dir
|
||||
env['SYSTEMD_SYSVRCND_PATH'] = self.rcnd_dir
|
||||
env['SYSTEMD_UNIT_PATH'] = self.unit_dir
|
||||
|
Loading…
Reference in New Issue
Block a user