]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sysv-generator test: always log to console
authorMartin Pitt <martin.pitt@ubuntu.com>
Mon, 15 Jun 2015 06:59:44 +0000 (08:59 +0200)
committerMartin Pitt <martin.pitt@ubuntu.com>
Mon, 15 Jun 2015 06:59:44 +0000 (08:59 +0200)
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

test/sysv-generator-test.py

index e74f8533c7f9ee340cb2a186c781d4170930b924..af0493b9a883874672b329ec422bc1e5347c0c6b 100644 (file)
@@ -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