tests: Set G_MESSAGES_DEBUG=all for daemon as it is needed

Otherwise executing the test script outside of the meson environment
will fail as the inhibitor test relies on being able to parse the log.
This commit is contained in:
Benjamin Berg
2021-08-26 14:26:40 +02:00
committed by Benjamin Berg
parent fc65055279
commit b3d6bf0825

View File

@ -237,6 +237,8 @@ class FPrintdTest(dbusmock.DBusTestCase):
env['G_DEBUG'] = 'fatal-criticals' env['G_DEBUG'] = 'fatal-criticals'
env['STATE_DIRECTORY'] = (self.state_dir + ':' + '/hopefully/a/state_dir_path/that/shouldnt/be/writable') env['STATE_DIRECTORY'] = (self.state_dir + ':' + '/hopefully/a/state_dir_path/that/shouldnt/be/writable')
env['RUNTIME_DIRECTORY'] = self.run_dir env['RUNTIME_DIRECTORY'] = self.run_dir
# The tests parses the debug output for suspend inhibitor debugging
env['G_MESSAGES_DEBUG'] = 'all'
argv = [self.paths['daemon'], '-t'] argv = [self.paths['daemon'], '-t']
valgrind = os.getenv('VALGRIND') valgrind = os.getenv('VALGRIND')