[gnome-settings-daemon/wip/benzea/ci] power: output gnome-session environ for testing CI
- From: Benjamin Berg <bberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/wip/benzea/ci] power: output gnome-session environ for testing CI
- Date: Thu, 15 Mar 2018 18:33:35 +0000 (UTC)
commit 99ae61cf84b46bfc0cb5ddfe5a3cdcf41702b596
Author: Benjamin Berg <bberg redhat com>
Date: Thu Mar 15 19:32:28 2018 +0100
power: output gnome-session environ for testing CI
plugins/power/test.py | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/plugins/power/test.py b/plugins/power/test.py
index 3157c6b0..e30cf982 100755
--- a/plugins/power/test.py
+++ b/plugins/power/test.py
@@ -57,6 +57,14 @@ class PowerPluginTest(gsdtestcase.GSDTestCase):
stdout=self.session_log_write,
stderr=subprocess.STDOUT)
+ environ = "/proc/%d/environ" % self.session.pid
+ environ = open(environ).read()
+ environ = environ.split(b'\0')
+ print('gnome-session environment:')
+ for e in environ:
+ print(e)
+ print('----')
+
# wait until the daemon is on the bus
try:
self.wait_for_bus_object('org.gnome.SessionManager',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]